Translations
Improve a translation of Glyph or add a new language.
Glyph's texts live in assets/i18n/<code>.toml in the
desktop repository,
one "key" = "text" per line. English (en.toml) is the reference; a missing
key falls back to English.
Improve a language
Edit the file and open a pull request. Keep placeholders such as {n}, {name}
or {title} exactly as they are.
Add a language
- Copy
en.tomlto<code>.toml(ISO 639-1, e.g.nl.toml) and translate it. - Add the language to
Langinsrc/i18n.rs(code, native name, file). - Add the code to
language_from_localeincrates/glyph-core/src/config.rs. cargo test -p glyph i18nchecks that every key and placeholder matches.