aboutsummaryrefslogtreecommitdiff
path: root/app/i18n/index.js
diff options
context:
space:
mode:
authorcsett86 <csett86@web.de>2021-06-27 20:57:25 +0200
committerGitHub <noreply@github.com>2021-06-27 20:57:25 +0200
commit2baa4b528202e09552469dbb4c90bbb783a43e59 (patch)
tree328243ffa590cd6841e471f02cda9678c74018f5 /app/i18n/index.js
parent055d0b1f95954c32e85bd4f97a7670f5162a54f5 (diff)
refactor: remove dependency to deprected remote module (#593)
the remote module will be removed from electron 14 onwards, so replace the locale detection with native browser api that is available in the renderer. Signed-off-by: Christoph Settgast <csett86@web.de>
Diffstat (limited to 'app/i18n/index.js')
-rw-r--r--app/i18n/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/i18n/index.js b/app/i18n/index.js
index 43ae7ed..50405b6 100644
--- a/app/i18n/index.js
+++ b/app/i18n/index.js
@@ -16,7 +16,7 @@ const languages = {
sq: { translation: require('./lang/sq.json') }
};
-const detectedLocale = window.jitsiNodeAPI.getLocale();
+const detectedLocale = navigator.language;
i18n
.use(initReactI18next)