license and fixup

This commit is contained in:
2026-07-11 03:05:42 +03:00
parent 2dec5660f6
commit 23cf742569
4 changed files with 80 additions and 35 deletions
+1 -1
View File
@@ -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;
}