mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
Merge remote-tracking branch 'origin' into bug/v2/reduce-console-pollution
This commit is contained in:
commit
f0a04566b0
@ -70,7 +70,7 @@ i18n
|
|||||||
},
|
},
|
||||||
|
|
||||||
backend: {
|
backend: {
|
||||||
loadPath: (lngs, namespaces) => {
|
loadPath: (lngs: string[], namespaces: string[]) => {
|
||||||
// Map 'en' to 'en-GB' for loading translations
|
// Map 'en' to 'en-GB' for loading translations
|
||||||
const lng = lngs[0] === 'en' ? 'en-GB' : lngs[0];
|
const lng = lngs[0] === 'en' ? 'en-GB' : lngs[0];
|
||||||
return `/locales/${lng}/${namespaces[0]}.json`;
|
return `/locales/${lng}/${namespaces[0]}.json`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user