]> git.openstreetmap.org Git - rails.git/commitdiff
Drop monkey patch that no longer seems to be needed
authorTom Hughes <tom@compton.nu>
Mon, 3 Mar 2025 22:52:36 +0000 (22:52 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 8 Mar 2025 15:18:02 +0000 (15:18 +0000)
Presumably this used to do something but it no longer seems to
make any difference to the generated javascript resources.

config/initializers/i18n.rb

index 8f74c3cd39455a0b5548aa8d6a364da9259a1309..f2504bd8756c74a3ed1f67be2ba6d05fa5c153aa 100644 (file)
@@ -21,19 +21,10 @@ module OpenStreetMap
         super
       end
     end
-
-    module ValidateLocales
-      def default_fallbacks
-        super.select do |locale|
-          ::I18n.available_locales.include?(locale)
-        end
-      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)