X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/037585db3933a2954b43bd4b30ea5e30ade00be2..3123822bba5865e81e8c10be16452a0a8b5362f9:/config/initializers/i18n.rb diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb index 91efa2557..a94618c7e 100644 --- a/config/initializers/i18n.rb +++ b/config/initializers/i18n.rb @@ -8,6 +8,16 @@ module I18n ex.entry[:other] end end + + class Simple + def store_translations_with_normalisation(locale, data, options = {}) + locale = I18n::Locale::Tag::Rfc4646.tag(locale).to_s + + store_translations_without_normalisation(locale, data, options) + end + + alias_method_chain :store_translations, :normalisation + end end module JS