Merge remote-tracking branch 'origin' into bug/v2/reduce-console-pollution

This commit is contained in:
Reece Browne 2025-08-14 23:53:30 +01:00
commit f0a04566b0

View File

@ -70,7 +70,7 @@ i18n
},
backend: {
loadPath: (lngs, namespaces) => {
loadPath: (lngs: string[], namespaces: string[]) => {
// Map 'en' to 'en-GB' for loading translations
const lng = lngs[0] === 'en' ? 'en-GB' : lngs[0];
return `/locales/${lng}/${namespaces[0]}.json`;