feat: 补充语言列表
This commit is contained in:
parent
dd20e9aea6
commit
3b033d0ed4
|
@ -58,6 +58,7 @@ const languageOptions: { label: string; key: Language; value: Language }[] = [
|
|||
{ label: '繁體中文', key: 'zh-TW', value: 'zh-TW' },
|
||||
{ label: 'English', key: 'en-US', value: 'en-US' },
|
||||
{ label: '한국어', key: 'ko-KR', value: 'ko-KR' },
|
||||
{ label: 'Русский язык', key: 'ru-RU', value: 'ru-RU' },
|
||||
]
|
||||
|
||||
function updateUserInfo(options: Partial<UserInfo>) {
|
||||
|
|
|
@ -11,6 +11,9 @@ export function useLanguage() {
|
|||
case 'en-US':
|
||||
setLocale('en-US')
|
||||
return enUS
|
||||
case 'ru-RU':
|
||||
setLocale('ru-RU')
|
||||
return enUS
|
||||
case 'ko-KR':
|
||||
setLocale('ko-KR')
|
||||
return koKR
|
||||
|
|
|
@ -4,7 +4,7 @@ const LOCAL_NAME = 'appSetting'
|
|||
|
||||
export type Theme = 'light' | 'dark' | 'auto'
|
||||
|
||||
export type Language = 'zh-CN' | 'zh-TW' | 'en-US' | 'ko-KR'
|
||||
export type Language = 'zh-CN' | 'zh-TW' | 'en-US' | 'ko-KR' | 'ru-RU'
|
||||
|
||||
export interface AppState {
|
||||
siderCollapsed: boolean
|
||||
|
|
Loading…
Reference in New Issue