Skip to content

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

feat(i18n): fix format for languages that rely on region

Calin-Teodord47272922581
diff --git a/react/features/base/i18n/languageDetector.native.ts b/react/features/base/i18n/languageDetector.native.ts
index 8ef65898d8..fd1d048328 100644
--- a/react/features/base/i18n/languageDetector.native.ts
+++ b/react/features/base/i18n/languageDetector.native.ts
@@ -23,9 +23,9 @@ export default {
let locale;
if (parts.length >= 3) {
- locale = `${lang}${region}`;
+ locale = `${lang}-${region}`;
} else if (parts.length === 2) {
- locale = `${lang}${regionOrScript}`;
+ locale = `${lang}-${regionOrScript}`;
} else {
locale = lang;
}