File tree Expand file tree Collapse file tree 6 files changed +975
-1
lines changed
Expand file tree Collapse file tree 6 files changed +975
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ const userStore = useUserStore()
3434const languageOptions = computed (() => [
3535 { value: ' en' , label: t (' common.english' ) },
3636 { value: ' zh-CN' , label: t (' common.simplified_chinese' ) },
37+ { value: ' zh-TW' , label: t (' common.traditional_chinese' ) },
3738 { value: ' ko-KR' , label: t (' common.korean' ) },
3839])
3940
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ const languageList = computed(() => [
5858 name: ' 简体中文' ,
5959 value: ' zh-CN' ,
6060 },
61+ {
62+ name: ' 繁體中文' ,
63+ value: ' zh-TW' ,
64+ },
6165 {
6266 name: ' 한국인' ,
6367 value: ' ko-KR' ,
Original file line number Diff line number Diff line change 11import { createI18n } from 'vue-i18n'
22import en from './en.json'
33import zhCN from './zh-CN.json'
4+ import zhTw from './zh-TW.json'
45import koKR from './ko-KR.json'
56import elementEnLocale from 'element-plus-secondary/es/locale/lang/en'
67import elementZhLocale from 'element-plus-secondary/es/locale/lang/zh-cn'
8+ import elementTwLocale from 'element-plus-secondary/es/locale/lang/zh-tw'
79import { useCache } from '@/utils/useCache'
810import { getBrowserLocale } from '@/utils/utils'
911
@@ -23,6 +25,10 @@ const messages = {
2325 ...zhCN ,
2426 el : elementZhLocale ,
2527 } ,
28+ 'zh-TW' : {
29+ ...zhTw ,
30+ el : elementTwLocale ,
31+ } ,
2632 'ko-KR' : {
2733 ...koKR ,
2834 el : elementKoLocale ,
@@ -40,6 +46,7 @@ export const i18n = createI18n({
4046const elementLocales = {
4147 en : elementEnLocale ,
4248 'zh-CN' : elementZhLocale ,
49+ 'zh-TW' : elementTwLocale ,
4350 'ko-KR' : elementKoLocale ,
4451} as const
4552
You can’t perform that action at this time.
0 commit comments