diff --git a/CHANGELOG.md b/CHANGELOG.md index f9fad21cf..e0fcc100d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,6 @@ - Fix a bug: invalid rails locale for Norwegian - ## v5.1.1 2021 July 1st - Set up the linter for Typescript files diff --git a/config/initializers/locale.rb b/config/initializers/locale.rb index ffaba7cf5..0bf1d100e 100644 --- a/config/initializers/locale.rb +++ b/config/initializers/locale.rb @@ -5,7 +5,7 @@ I18n.config.available_locales += %i[de de-AT de-CH de-DE en en-AU en-CA en-GB en-IE en-IN en-NZ en-US en-ZA fr fa-CA fr-CH fr-CM fr-FR es es-419 es-AR es-CL es-CO es-CR es-DO es-EC es-ES es-MX es-PA es-PE es-US es-VE - no + no nb pt pt-BR zu] # we allow the Zulu locale (zu) as it is used for In-Context translation diff --git a/config/locales/rails.no.yml b/config/locales/rails.nb.yml similarity index 99% rename from config/locales/rails.no.yml rename to config/locales/rails.nb.yml index 8b410fdfd..c8c99c900 100644 --- a/config/locales/rails.no.yml +++ b/config/locales/rails.nb.yml @@ -1,5 +1,5 @@ --- -no: +nb: activerecord: errors: messages: diff --git a/doc/environment.md b/doc/environment.md index a2d1a6794..b53ddd13b 100644 --- a/doc/environment.md +++ b/doc/environment.md @@ -159,7 +159,7 @@ Please, be aware that **the configured locale will imply the CURRENCY symbol use _Eg.: configuring **es-ES** will set the currency symbol to **€** but **es-MX** will set **$** as currency symbol, so setting the `RAILS_LOCALE` to simple **es** (without country indication) will probably not do what you expect._ Available values: `en, en-AU-CA, en-GB, en-IE, en-IN, en-NZ, en-US, en-ZA, fr, fa-CA, fr-CH, fr-CM, fr-FR, es, es-419, es-AR, es-CL, es-CO, es-CR, es-DO, - es-EC, es-ES, es-MX, es-MX, es-PA, es-PE, es-US, es-VE, no, pt, pt-BR, zu`. + es-EC, es-ES, es-MX, es-MX, es-PA, es-PE, es-US, es-VE, nb, pt, pt-BR, zu`. Default is **en**. If your locale is not present in that list or any locale doesn't have your exact expectations, please open a pull request to share your modifications with the community and obtain a rebuilt docker image.