]> git.openstreetmap.org Git - rails.git/commitdiff
Disable client side I18n fallbacks
authorTom Hughes <tom@compton.nu>
Mon, 3 Mar 2025 20:35:32 +0000 (20:35 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 8 Mar 2025 15:18:01 +0000 (15:18 +0000)
They weren't actually doing anything, as we only ever load
resources for the current language, and the real fallback is
handled on the server when those are built.

app/assets/javascripts/application.js

index c8f188a2e40f4163df77cef7c379109077d8b1e7..4991e82fb71d2170ec36b75fb6eded434bc23d97 100644 (file)
@@ -21,7 +21,6 @@
 
   I18n.default_locale = OSM.DEFAULT_LOCALE;
   I18n.locale = locale;
-  I18n.fallbacks = true;
 
   // '-' are replaced with '_' in https://github.com/eemeli/make-plural/tree/main/packages/plurals
   const pluralizer = plurals[locale.replace(/\W+/g, "_")] || plurals[locale.split("-")[0]];