mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-26 23:30:09 +08:00
refactor: knip cleanup (#7468)
* chore(frontend): expand Knip reports * chore: remove unused Mihomo changelog sync script * refactor: remove unused value exports * refactor: remove unused type exports * refactor: remove circular route dependencies * chore(frontend): move Knip scope to config * chore(i18n): remove stale portable update message
This commit is contained in:
@@ -105,14 +105,6 @@ const localeLoaders = Object.entries(localeModules).reduce<
|
||||
return acc
|
||||
}, {})
|
||||
|
||||
export const languages: Record<string, any> = supportedLanguages.reduce(
|
||||
(acc, lang) => {
|
||||
acc[lang] = {}
|
||||
return acc
|
||||
},
|
||||
{} as Record<string, any>,
|
||||
)
|
||||
|
||||
const loadLanguageSections = async (
|
||||
language: string,
|
||||
sections: readonly string[],
|
||||
@@ -144,9 +136,6 @@ const loadLanguageSections = async (
|
||||
}
|
||||
}
|
||||
|
||||
export const loadLanguage = async (language: string) =>
|
||||
loadLanguageSections(language, STARTUP_LANGUAGE_SECTIONS)
|
||||
|
||||
const getLoadedLanguageSections = (language: string) =>
|
||||
Object.keys(i18n.getResourceBundle(language, 'translation') ?? {})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user