feat(i18n): add toast i18n with en/zh locale and plugin config support

- Add src/locales/ with en baseline and zh overrides (Partial<Record> fallback)
- Add src/shared/i18n.ts with initI18n/t/setLocale/getLocale (LANG env auto-detect)
- Add I18nConfigSchema with locale field to plugin config
- Internationalize 13 hardcoded strings in task-toast-manager
- Add 18 unit tests for i18n module
- Pin manager tests to en locale for determinism
This commit is contained in:
leeyazhou
2026-05-09 14:39:21 +08:00
parent 49066e7ecc
commit 9dc9d77904
12 changed files with 377 additions and 16 deletions
+1
View File
@@ -13,6 +13,7 @@ export * from "./schema/fallback-models"
export * from "./schema/git-env-prefix"
export * from "./schema/git-master"
export * from "./schema/hooks"
export * from "./schema/i18n"
export * from "./schema/keyword-detector"
export * from "./schema/model-capabilities"
export * from "./schema/notification"