refactor: remove remaining dead code

This commit is contained in:
chengyongru
2026-08-23 19:08:00 +08:00
committed by chengyongru
parent 3852956a71
commit 961b1fdd7d
46 changed files with 85 additions and 250 deletions
+1 -3
View File
@@ -10,7 +10,6 @@ import {
applyDocumentLocale,
defaultLocale,
fallbackLocale,
LOCALE_STORAGE_KEY,
normalizeLocale,
persistLocale,
resolveInitialLocale,
@@ -47,7 +46,7 @@ export function currentLocale(): SupportedLocale {
return normalizeLocale(i18n.resolvedLanguage ?? i18n.language ?? defaultLocale);
}
export async function loadLocaleResources(
async function loadLocaleResources(
locale: SupportedLocale,
): Promise<LocaleResource> {
const existing = resourcePromises.get(locale);
@@ -131,5 +130,4 @@ function syncLocaleSideEffects(language: string) {
persistLocale(locale);
}
export { LOCALE_STORAGE_KEY };
export default i18n;