Skip to content

Commit

Permalink
feat(locale): translate chinese (#2580)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackWhite2000 authored Nov 9, 2024
1 parent 20379f5 commit febda5c
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
37 changes: 37 additions & 0 deletions src/runtime/locale/zh_hans.ts
Original file line number Diff line number Diff line change
@@ -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: '没有数据'
}
})
37 changes: 37 additions & 0 deletions src/runtime/locale/zh_hant.ts
Original file line number Diff line number Diff line change
@@ -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: '沒有資料'
}
})

0 comments on commit febda5c

Please sign in to comment.