feat: 添加繁体中文翻译 (#348)

* feat: Add Traditional Chinese language UI locale

* chore: 添加新翻译

---------

Co-authored-by: ChenZhaoYu <790348264@qq.com>
This commit is contained in:
Peter Dave Hello
2023-03-07 18:44:27 +08:00
committed by GitHub
parent 45cbfbf002
commit ecc2afd164
5 changed files with 55 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import { computed } from 'vue'
import { enUS, zhCN } from 'naive-ui'
import { enUS, zhCN, zhTW } from 'naive-ui'
import { useAppStore } from '@/store'
import { setLocale } from '@/locales'
@@ -14,6 +14,9 @@ export function useLanguage() {
case 'zh-CN':
setLocale('zh-CN')
return zhCN
case 'zh-TW':
setLocale('zh-TW')
return zhTW
default:
setLocale('zh-CN')
return enUS