feat(language): 默认中文
This commit is contained in:
parent
12a21808f9
commit
9e865d1ee0
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user