fix ACAAB language sync with header selection

This commit is contained in:
Andrie
2026-06-04 15:57:07 +07:00
parent b5fba9238e
commit fd477e4c22
2 changed files with 5 additions and 1 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -5,7 +5,7 @@ const KIT_STORAGE_KEY = 'if_untan_lang';
function readKitLang(): Lang {
const saved = localStorage.getItem(KIT_STORAGE_KEY);
if (saved === 'en') return 'en';
if (saved === 'id' || saved === 'en') return saved;
const browser = (navigator.language || 'id').toLowerCase();
return browser.startsWith('en') ? 'en' : 'id';
}