mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-08 17:51:20 +02:00
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:
parent
1a3e8e7ecf
commit
331e2511e5
@ -59,6 +59,7 @@ i18n
|
|||||||
.init({
|
.init({
|
||||||
fallbackLng: 'en-GB',
|
fallbackLng: 'en-GB',
|
||||||
supportedLngs: Object.keys(supportedLanguages),
|
supportedLngs: Object.keys(supportedLanguages),
|
||||||
|
load: 'currentOnly',
|
||||||
nonExplicitSupportedLngs: false,
|
nonExplicitSupportedLngs: false,
|
||||||
debug: process.env.NODE_ENV === 'development',
|
debug: process.env.NODE_ENV === 'development',
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user