Auto select language implementation
This commit is contained in:
1 parent
854de76467
commit
5fd7b368e2
1 file changed
+1
-1
+1
-1
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user