From 5fd7b368e295333503d8e702c798cfb51c334283 Mon Sep 17 00:00:00 2001 From: Thomas David <66013753+Kiriox94@users.noreply.github.com> Date: Sun, 28 Apr 2024 11:54:59 +0200 Subject: [PATCH] Auto select language implementation --- src/plugins/i18n.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index adc1f3d52..d1a0f4902 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -75,7 +75,7 @@ export interface Localizable { const DEFAULT_LANGUAGE_OVERRIDE = ''; export function initI18n(): void { - let lang = 'en'; + let lang = navigator.language; if (localStorage.getItem('prLang')) lang = localStorage.getItem('prLang');