mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 06:51:08 +00:00
Auto select language implementation
This commit is contained in:
parent
854de76467
commit
5fd7b368e2
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user