2020-04-08 16:32:22 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# List of all allowed values for RAILS_LOCALE
|
2021-02-08 16:17:40 +01:00
|
|
|
I18n.config.available_locales += %i[de de-AT de-CH de-DE
|
2021-05-12 16:58:39 +02:00
|
|
|
en en-AU en-CA en-GB en-IE en-IN en-NZ en-US en-ZA
|
2021-02-08 16:17:40 +01:00
|
|
|
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
|
2021-06-30 17:24:01 +02:00
|
|
|
no
|
2021-02-08 16:17:40 +01:00
|
|
|
pt pt-BR
|
|
|
|
zu]
|
2020-04-08 16:32:22 +02:00
|
|
|
# we allow the Zulu locale (zu) as it is used for In-Context translation
|
|
|
|
# @see https://support.crowdin.com/in-context-localization/
|
2020-12-30 18:39:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# /!\ ALL locales SHOULD be configured accordingly with the default_locale. /!\
|
|
|
|
#
|
2021-05-12 16:58:39 +02:00
|
|
|
I18n.config.default_locale = Rails.application.secrets.rails_locale.to_s.split('-')[0]
|
2020-12-30 18:39:46 +01:00
|
|
|
I18n.config.locale = Rails.application.secrets.rails_locale
|