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(i18n): Ignore case when normalizing languages.

damencho70a05e487ecf
diff --git a/react/features/base/i18n/customNavigatorDetector.ts b/react/features/base/i18n/customNavigatorDetector.ts
index 2643390092..b512faf6ab 100644
--- a/react/features/base/i18n/customNavigatorDetector.ts
+++ b/react/features/base/i18n/customNavigatorDetector.ts
@@ -59,7 +59,7 @@ export default {
function normalizeLanguage(language: string) {
const [ lang, variant ] = language.replace('_', '-').split('-');
- if (!variant || lang === variant) {
+ if (!variant || lang.toUpperCase() === variant.toUpperCase()) {
return lang;
}