Internationalization
Available locales are
| Code | Language | Translators |
|---|---|---|
auto |
Auto-detect | |
en |
English | @Etto48 |
it-IT |
Italian (Italy) | @Etto48 |
fr-FR |
French (France) | @Pallandos |
es-ES |
Spanish (Spain) | @chocolatemilq |
de-DE |
German (Germany) | AI |
ja-JP |
Japanese (Japan) | @Latte72R |
zh-CN |
Simplified Chinese (China) | @Meow0x7E |
zh-TW |
Traditional Chinese (Taiwan) | @Meow0x7E |
zh-HK |
Traditional Chinese (Hong Kong) | @Meow0x7E |
tr-TR |
Turkish (Turkey) | @orhun @arda-guler |
You can set the locale with the key app.locale in the settings file. See the settings documentation for more information.
Auto-detect
The auto locale (default one) will try to detect the user's locale based on the system settings. It first tries to match exactly the locale code, then it falls back to the language code, and finally to English (en) if no match is found.
Contributing
You are welcome to contribute a new locale or improve an existing one.
If you use AI to translate, please communicate clearly in the pull request that the translation was done by AI.
Creating a New Locale
- (mandatory) Create a new file in the
localesdirectory with the name<code>.yml, where<code>is the locale code (e.g.,it-IT.yamlfor Italian). The file should contain all the keys and values needed for the locale, following the structure oflocales/en.ymlas a reference. You can use thelocales/en.ymlfile as a template and translate the values to your desired language. - (optional) Add the new locale to the
package.metadata.i18n.available-localesarray in Cargo.toml. - (optional) Add the new locale to the
Localeenum insrc/app/settings/locale.rs. To do so, follow the pattern of existing locales. - (optional) Add the new locale to this file (
docs/I18N.md) in the table above, including the translator's GitHub username orAIif you used it to generate the translation. - (mandatory) Create a pull request with the changes.
Improving an Existing Locale
- (mandatory) Edit the existing locale file in the
localesdirectory (e.g.,locales/it-IT.ymlfor Italian). - (optional) Add you name to the translator column in the table above in this file (
docs/I18N.md). - (mandatory) Create a pull request with the changes.