Skip to content

Commit 8514ab5

Browse files
authored
feat(locales): add traditional chinese translations for git changelog (#580)
1 parent af42b30 commit 8514ab5

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

packages/vitepress-plugin-git-changelog/src/client/locales.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import type { Locale } from './types'
22

3-
import { defaultEnLocale, defaultRuLocale, defaultZhCNLocale } from '../locales'
3+
import { defaultEnLocale, defaultRuLocale, defaultZhCNLocale, defaultZhHantLocale } from '../locales'
44

55
export {
66
defaultEnLocale,
77
defaultRuLocale,
88
defaultZhCNLocale,
9+
defaultZhHantLocale,
910
}
1011

1112
export const defaultLocales: Record<string, Locale> = {
@@ -16,4 +17,7 @@ export const defaultLocales: Record<string, Locale> = {
1617
'zh-CN': defaultZhCNLocale,
1718
'zh-Hans': defaultZhCNLocale,
1819
'zh': defaultZhCNLocale,
20+
'zh-TW': defaultZhHantLocale,
21+
'zh-HK': defaultZhHantLocale,
22+
'zh-Hant': defaultZhHantLocale,
1923
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import defaultEnLocale from './en.yaml'
22
import defaultRuLocale from './ru-RU.yaml'
33
import defaultZhCNLocale from './zh-CN.yaml'
4+
import defaultZhHantLocale from './zh-Hant.yaml'
45

56
export {
67
defaultEnLocale,
78
defaultRuLocale,
89
defaultZhCNLocale,
10+
defaultZhHantLocale,
911
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
changelog:
2+
title: '頁面歷史'
3+
titleId: '頁面歷史'
4+
noData: '暫無最近變更歷史'
5+
lastEdited: '最後編輯於 {{daysAgo}}'
6+
lastEditedDateFnsLocaleName: 'zh-Hant'
7+
viewFullHistory: '查看完整歷史'
8+
committedOn: ' 於 {{date}}'
9+
contributors:
10+
title: '貢獻者'
11+
titleId: '貢獻者'
12+
noData: '暫無相關貢獻者'

0 commit comments

Comments
 (0)