Managing translations (i18n)
The workflow
Decidim uses Crowdin to manage the translations.
-
Whenever someone adds a new translation key to Decidim, Crowdin gets notified and the new content is available to be translated from Crowdin’s Decidim dashboard.
-
When a translator translates any key from Crowdin, it automatically creates a PR in GitHub, adding the keys in the corresponding yaml files.
-
🌈
Adding a new language
-
Setup the new language in Crowdin’s Decidim project (or open an issue on GitHub asking an admin to do that).
-
Add the locale mapping in the
crowdin.yml
file -
Translate at least one key from every engine, so, your yaml files are not empty. The easiest way to do this is to automatically translate and sync all the content. Later you will be able to fix the content that was not properly translated.
-
Add the new language to
available_locales
(PR). -
Add the language in decidim-core/spec/lib/available_locales_spec.rb.