Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new locales #1294

Merged
merged 1 commit into from
Apr 2, 2019
Merged

Add new locales #1294

merged 1 commit into from
Apr 2, 2019

Conversation

bevanloon
Copy link
Contributor

@bevanloon bevanloon commented Apr 1, 2019

We are adding support for:

Croatian: hr
Danish: da
Dutch: nl
Finish fi
Icelandic is
Irish gd
Norwegian: no
Maltese: mt
Slovenian: sl
Swedish: sv

Add the locale codes to config/application.rb to enable them and also add
the files to config/locales. No translations are currently provided in
the locale files. These will be added at a later date. For now, we just
need to enable adding translations to publications for these languages.

Note that in config/locales/en.yml we've enclosed "no" in quotes. This
is because in YAML no is a reserved word.
We use rails_translation_manager to regenerate our locale files.
When rails_translation_manager loads the YAML and interprets
"no" as a bool instead of a locale, it breaks.

Trello

We are adding support for:

Croatian: hr
Danish: da
Dutch: nl
Finish fi
Icelandic is
Irish gd
Norwegian: no
Maltese: mt
Slovenian: sl
Swedish: sv

Add the locale codes to `config/application.rb` to enable them and also add
the files to `config/locales`. No translations are currently provided in
the locale files. These will be added at a later date. For now, we just
need to enable adding translations to publications for these languages.

Note that in config/locales/en.yml we've enclosed "no" in quotes. This
is because in YAML no is a [reserved word](https://yaml.org/type/bool.html).
We use rails_translation_manager to regenerate our locale files.
When rails_translation_manager loads the YAML and interprets
"no" as a bool instead of a locale, it breaks.
@bevanloon bevanloon merged commit c00498f into master Apr 2, 2019
@bevanloon bevanloon deleted the add-new-locales branch April 2, 2019 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants