From: Tom Hughes Date: Mon, 3 Mar 2025 20:35:32 +0000 (+0000) Subject: Disable client side I18n fallbacks X-Git-Tag: live~126^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/84fc41716298c24e7ed2ce5d96d4abe9c75fe94b?ds=sidebyside Disable client side I18n fallbacks 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. --- diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index c8f188a2e..4991e82fb 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -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]];