diff --git a/src/runtime/locale/index.ts b/src/runtime/locale/index.ts index 192dc357..8240d846 100644 --- a/src/runtime/locale/index.ts +++ b/src/runtime/locale/index.ts @@ -2,3 +2,5 @@ export { default as de } from './de' export { default as en } from './en' export { default as fr } from './fr' export { default as ru } from './ru' +export { default as zh_hans } from './zh_hans' +export { default as zh_hant } from './zh_hant' diff --git a/src/runtime/locale/zh_hans.ts b/src/runtime/locale/zh_hans.ts new file mode 100644 index 00000000..9da67b5e --- /dev/null +++ b/src/runtime/locale/zh_hans.ts @@ -0,0 +1,37 @@ +import { defineLocale } from '../composables/defineLocale' + +export default defineLocale('简体中文', { + inputMenu: { + noMatch: '没有匹配的数据', + noData: '没有数据' + }, + commandPalette: { + noMatch: '没有匹配的数据', + noData: '没有数据', + close: '关闭' + }, + selectMenu: { + noMatch: '没有匹配的数据', + noData: '没有数据' + }, + toast: { + close: '关闭' + }, + carousel: { + prev: '上一页', + next: '下一页', + goto: '跳转到第 {slide} 页' + }, + modal: { + close: '关闭' + }, + slideover: { + close: '关闭' + }, + alert: { + close: '关闭' + }, + table: { + noData: '没有数据' + } +}) diff --git a/src/runtime/locale/zh_hant.ts b/src/runtime/locale/zh_hant.ts new file mode 100644 index 00000000..d9fc299d --- /dev/null +++ b/src/runtime/locale/zh_hant.ts @@ -0,0 +1,37 @@ +import { defineLocale } from '../composables/defineLocale' + +export default defineLocale('繁体中文', { + inputMenu: { + noMatch: '沒有匹配的資料', + noData: '沒有資料' + }, + commandPalette: { + noMatch: '沒有匹配的資料', + noData: '沒有資料', + close: '關閉' + }, + selectMenu: { + noMatch: '沒有匹配的資料', + noData: '沒有資料' + }, + toast: { + close: '關閉' + }, + carousel: { + prev: '上一頁', + next: '下一頁', + goto: '跳轉到第 {slide} 頁' + }, + modal: { + close: '關閉' + }, + slideover: { + close: '關閉' + }, + alert: { + close: '關閉' + }, + table: { + noData: '沒有資料' + } +})