From 652bf50e8d03111b374aa5b6cca38c0e09dd226c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E5=B7=9D=E7=99=BD=E6=B5=AA?= <1679659@qq.com> Date: Fri, 4 Dec 2026 23:15:25 -0700 Subject: [PATCH] refactor(frontend): move the i18n entry module into its directory frontend/src/i18n.ts and frontend/src/i18n/ shared a name, so ./i18n resolved to the file while ./i18n/icu resolved to the directory. The entry module is now frontend/src/i18n/index.ts and no importer changed. --- frontend/src/{i18n.ts => i18n/index.ts} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename frontend/src/{i18n.ts => i18n/index.ts} (98%) diff --git a/frontend/src/i18n.ts b/frontend/src/i18n/index.ts similarity index 98% rename from frontend/src/i18n.ts rename to frontend/src/i18n/index.ts index 7f8649d..c68a32a 100644 --- a/frontend/src/i18n.ts +++ b/frontend/src/i18n/index.ts @@ -1,7 +1,7 @@ -import { BuiltinLocale, Locale, LocalizedText, ResolvedLocalePack } from './types' -import { formatICU, ICUVars, pseudoLocalizeICU } from './i18n/icu' -import type { I18nKey } from './i18n/keys.gen' -import { builtinDict, registerBuiltinDomain } from './i18n/runtime' +import { BuiltinLocale, Locale, LocalizedText, ResolvedLocalePack } from '../types' +import { formatICU, ICUVars, pseudoLocalizeICU } from './icu' +import type { I18nKey } from './keys.gen' +import { builtinDict, registerBuiltinDomain } from './runtime' export type { I18nKey } export { registerBuiltinDomain }