mirror of https://github.com/halo-dev/halo
add zhTW locale (#3672)
#### What type of PR is this? /kind feature /area core #### What this PR does / why we need it: Add zhTW locale. #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3346 #### Does this PR introduce a user-facing change? ```release-note 提供繁体中文(TW)翻译 ```pull/3691/head
parent
d8f4e478e2
commit
a466ee73c9
|
@ -4,6 +4,8 @@ import { createI18n } from "vue-i18n";
|
|||
import en from "./en.yaml";
|
||||
// @ts-ignore
|
||||
import zhCN from "./zh-CN.yaml";
|
||||
// @ts-ignore
|
||||
import zhTW from "./zh-TW.yaml";
|
||||
|
||||
export const locales = [
|
||||
{
|
||||
|
@ -25,6 +27,11 @@ export const locales = [
|
|||
code: "zh",
|
||||
package: zhCN,
|
||||
},
|
||||
{
|
||||
name: "正體中文",
|
||||
code: "zh-TW",
|
||||
package: zhTW,
|
||||
},
|
||||
];
|
||||
|
||||
const messages = locales.reduce((acc, cur) => {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue