]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/i18n.rb
Fix heatmap month titles in Western Hemisphere
[rails.git] / config / initializers / i18n.rb
index 266e41cbb98d501435ba985efbdba9af475c8d63..a316db408dfdc06e92a7abe02cbc0e79bd4bdb19 100644 (file)
@@ -18,28 +18,17 @@ module OpenStreetMap
       def store_translations(locale, data, options = {})
         locale = ::I18n::Locale::Tag::Rfc4646.tag(locale).to_s
 
-        super(locale, data, options)
-      end
-    end
-
-    module ValidateLocales
-      def default_fallbacks
-        super.select do |locale|
-          ::I18n.available_locales.include?(locale)
-        end
+        super
       end
     end
   end
 end
 
 I18n::Backend::Simple.prepend(OpenStreetMap::I18n::NormaliseLocales)
-I18n::JS::FallbackLocales.prepend(OpenStreetMap::I18n::ValidateLocales)
 
 I18n::Backend::Simple.include(I18n::Backend::PluralizationFallback)
 I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
 
-I18n.fallbacks.map("no" => "nb")
-
 I18n.enforce_available_locales = false
 
 if Rails.env.test?