You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
feat: save language setting to localStorage
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { appListContainer, fetchAppList } from './applist.js';
|
||||
import { initializeAvailableLanguages, detectUserLanguage, loadTranslations, setupLanguageMenu, translations } from './language.js';
|
||||
import { loadTranslations, setupLanguageMenu, translations } from './language.js';
|
||||
import { aospkb, setupSystemAppMenu } from './menu_option.js';
|
||||
import { searchMenuContainer, searchInput, clearBtn, setupMenuToggle } from './search_menu.js';
|
||||
import { updateCheck } from './update.js';
|
||||
@@ -357,9 +357,7 @@ window.addEventListener('scroll', () => {
|
||||
|
||||
// Initial load
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
await initializeAvailableLanguages();
|
||||
const userLang = detectUserLanguage();
|
||||
await loadTranslations(userLang);
|
||||
loadTranslations();
|
||||
await checkMMRL();
|
||||
if (!MMRL_API) return;
|
||||
await getBasePath();
|
||||
|
||||
Reference in New Issue
Block a user