Auto select language implementation
parent
854de76467
commit
5fd7b368e2
|
@ -75,7 +75,7 @@ export interface Localizable {
|
||||||
const DEFAULT_LANGUAGE_OVERRIDE = '';
|
const DEFAULT_LANGUAGE_OVERRIDE = '';
|
||||||
|
|
||||||
export function initI18n(): void {
|
export function initI18n(): void {
|
||||||
let lang = 'en';
|
let lang = navigator.language;
|
||||||
|
|
||||||
if (localStorage.getItem('prLang'))
|
if (localStorage.getItem('prLang'))
|
||||||
lang = localStorage.getItem('prLang');
|
lang = localStorage.getItem('prLang');
|
||||||
|
|
Loading…
Reference in New Issue