feat(language): 默认中文

This commit is contained in:
肖应宇 2026-04-16 10:14:01 +08:00
parent 12a21808f9
commit 9e865d1ee0
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
export const SUPPORTED_LOCALES = ["en-US", "zh-CN"] as const;
export type Locale = (typeof SUPPORTED_LOCALES)[number];
export const DEFAULT_LOCALE: Locale = "en-US";
export const DEFAULT_LOCALE: Locale = "zh-CN";
export function isLocale(value: string): value is Locale {
return (SUPPORTED_LOCALES as readonly string[]).includes(value);