license and fixup
This commit is contained in:
1 parent
2dec5660f6
commit
23cf742569
4 files changed
+80
-35
No files matched your search
@@ -4,7 +4,7 @@ import { ru } from './ru';
|
||||
const locales: Record<string, Locale> = { en, ru };
|
||||
|
||||
function detectLocale(): Locale {
|
||||
const lang = (navigator.language || 'en').slice(0, 2);
|
||||
const lang = (document.documentElement.lang || 'en').slice(0, 2);
|
||||
return locales[lang] || en;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user