From 331e2511e526c1ec6d0e0ebec428f295763b304d Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Wed, 3 Sep 2025 05:05:48 +0200 Subject: [PATCH] Set i18n to load only current language Added the 'load: currentOnly' option to i18n initialization to ensure only the current language is loaded, optimizing resource usage and preventing unnecessary language data from being fetched. --- frontend/src/i18n.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/i18n.ts b/frontend/src/i18n.ts index 454bb4cbc..b0ce8fdf7 100644 --- a/frontend/src/i18n.ts +++ b/frontend/src/i18n.ts @@ -59,6 +59,7 @@ i18n .init({ fallbackLng: 'en-GB', supportedLngs: Object.keys(supportedLanguages), + load: 'currentOnly', nonExplicitSupportedLngs: false, debug: process.env.NODE_ENV === 'development',