Table of Contents
Localization
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 is then auto-translated using an LLM model to other languages and saved as separate files in the format html/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.jsscript
Editing Localization
In case of a bad ML translation, or if you want to provide a better alternative,
you can create/edit html/override_{locale}.json, which only needs to include specific items you want to override.
Supported Languages
en: Englishde: Germanes: Spanishfr: Frenchit: Italianpt: Portuguesehr: Croatianzh: Chineseja: Japaneseko: Koreanru: 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