Files
deer-flow/frontend/src/core/i18n/index.ts
Xinmin Zeng e9adaab7a6 fix(i18n): normalize locale and prevent undefined translations (#914)
* fix(i18n): guard locale input and add safe translation fallback

* refactor(i18n): isolate locale utils and normalize server cookie decode

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-02-27 08:10:38 +08:00

12 lines
287 B
TypeScript

export { enUS } from "./locales/en-US";
export { zhCN } from "./locales/zh-CN";
export type { Translations } from "./locales/types";
export {
DEFAULT_LOCALE,
SUPPORTED_LOCALES,
detectLocale,
isLocale,
normalizeLocale,
} from "./locale";
export type { Locale } from "./locale";