X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9a9b045372a6f48420a9a6dacfde52c34ab7abce..7da66025272b7b5ac3a0fa6d7ea3c42c652eb7ff:/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