license and fixup

This commit is contained in:
oqyude committed 2026-07-11 03:05:42 +03:00
1 parent 2dec5660f6
commit 23cf742569
4 files changed
+80 -35

No files matched your search

+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;
}