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.
This commit is contained in:
Ludy87 2025-09-03 05:05:48 +02:00
parent 1a3e8e7ecf
commit 331e2511e5
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -59,6 +59,7 @@ i18n
.init({
fallbackLng: 'en-GB',
supportedLngs: Object.keys(supportedLanguages),
load: 'currentOnly',
nonExplicitSupportedLngs: false,
debug: process.env.NODE_ENV === 'development',