fix: i18n and lint
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import { useSettings } from '@renderer/hooks/useSettings'
|
||||
import { LanguageVarious } from '@renderer/types'
|
||||
import { ConfigProvider, theme } from 'antd'
|
||||
import elGR from 'antd/locale/el_GR'
|
||||
import enUS from 'antd/locale/en_US'
|
||||
import esES from 'antd/locale/es_ES'
|
||||
import frFR from 'antd/locale/fr_FR'
|
||||
import jaJP from 'antd/locale/ja_JP'
|
||||
import ptPT from 'antd/locale/pt_PT'
|
||||
import ruRU from 'antd/locale/ru_RU'
|
||||
import zhCN from 'antd/locale/zh_CN'
|
||||
import zhTW from 'antd/locale/zh_TW'
|
||||
@@ -53,7 +57,14 @@ function getAntdLocale(language: LanguageVarious) {
|
||||
return ruRU
|
||||
case 'ja-JP':
|
||||
return jaJP
|
||||
|
||||
case 'el-GR':
|
||||
return elGR
|
||||
case 'es-ES':
|
||||
return esES
|
||||
case 'fr-FR':
|
||||
return frFR
|
||||
case 'pt-PT':
|
||||
return ptPT
|
||||
default:
|
||||
return zhCN
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user