X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/445e608bae2fb62df9522388e4d7c3f5ee843441..737a325f2e4b45b26277de7986325705ff17b63d:/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