Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: Fixes i18next trying to fetch non-existing files. Fixes #13716.

damenchoe434a78de943
diff --git a/react/features/base/i18n/i18next.ts b/react/features/base/i18n/i18next.ts
index e869f39fcc..ae13902190 100644
--- a/react/features/base/i18n/i18next.ts
+++ b/react/features/base/i18n/i18next.ts
@@ -65,7 +65,9 @@ export const DEFAULT_LANGUAGE = 'en';
*/
const options: i18next.InitOptions = {
backend: <HttpBackendOptions>{
- loadPath: 'lang/{{ns}}-{{lng}}.json'
+ loadPath: (lng: string[], ns: string[]) =>
+ // eslint-disable-next-line no-extra-parens
+ (ns[0] === 'main' ? 'lang/{{ns}}-{{lng}}.json' : 'lang/{{ns}}.json')
},
defaultNS: 'main',
fallbackLng: DEFAULT_LANGUAGE,