Skip to content
Vladimir Mandic edited this page Feb 9, 2025 · 3 revisions

Hints

SD.Next localization system is based on the single JSON file: html/locale_en.json

Structure of the file is simple: For each visible UI label, there is a corresponding hint that is displayed when user hovers over the label.

Example: generate button:

{"id":"","label":"Generate","localized":"","hint":"Start processing"}

Tip

See Hints document for more details

This file which is then auto-translated using LLM model to other languages and saved as separate files in a format hmtl/locale_{locale}.json
Those files should not be edited directly as they are auto-generated and will be overwritten on the next update, but if you have suggestions for improvements, please contact us

Note

Translation is performed using cli/localize.js script

Editing Localization

In case of bad ML translation or you just want to provide a better alternernative,
you can create/edit hmtl/override_{locale}.json which only needs to include specific items you want to override

Supported Languages

  • en: English
  • de: German
  • es: Spanish
  • fr: French
  • it: Italian
  • pt: Portuguese
  • hr: Croatian
  • zh: Chinese
  • ja: Japanese
  • ko: Korean
  • ru: Russian

If you want to add additional language, you can create a new file with the same structure and submit it as a PR, or contact us.

Selecting Locale

Default locale is auto selected based on browser's language settings,

You can manually select it in settings -> user interface -> language
Or by using CLI parameter --locale, for example

./webui.sh --debug --locale hr

For testing purposes, quick-switch is also available by clicking near the top-right corner of the page

Clone this wiki locally