Language and translations
Simulator and editors speak English, plus every language translated on
Crowdin — German at the moment. The language
comes from the operating system; TRAINSIM_LANG=en (or de, …) overrides it, the editors
switch it at runtime under View → Language, the simulator under Settings → Language.
Only the English source, crates/i18n/locales/en/main.ftl (Fluent), is in the
repository. The translations are downloaded next to it before a build — release builds do
this on their own; for a local build with all languages:
CROWDIN_PERSONAL_TOKEN=… tools/i18n/crowdin.sh download # approved translations → locales/<lang>/cargo run -p appWithout that step the build is English only. A new language is added on Crowdin and needs
no code change: i18n::LANGUAGES is generated from the directories that are there, and each
language names itself through its language-name message. Want to help translate? Join the
project on Crowdin.