From 84fc41716298c24e7ed2ce5d96d4abe9c75fe94b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 3 Mar 2025 20:35:32 +0000 Subject: [PATCH] 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. --- app/assets/javascripts/application.js | 1 - 1 file changed, 1 deletion(-) 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]]; -- 2.39.5