Skip to content

Commit 2834e16

Browse files
authored
Merge pull request #598 from ngivanyh/feature/add-zh-TW
Add Traditional Chinese (`zh-TW`)
2 parents 2683faa + 97a22da commit 2834e16

8 files changed

Lines changed: 409 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@embedpdf/snippet': patch
3+
---
4+
5+
Add Traditional Chinese (`zh-TW`) locale strings to the snippet viewer, register them in the default translation bundle, and expose `zh-TW` in the CJK language group of the UI schema so users can select 繁體中文 in the viewer.

viewers/snippet/src/components/app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ import {
144144
frenchTranslations,
145145
spanishTranslations,
146146
simplifiedChineseTranslations,
147+
traditionalChineseTranslations,
147148
japaneseTranslations,
148149
swedishTranslations,
149150
} from '@/config';
@@ -317,6 +318,7 @@ const DEFAULTS = {
317318
frenchTranslations,
318319
spanishTranslations,
319320
simplifiedChineseTranslations,
321+
traditionalChineseTranslations,
320322
japaneseTranslations,
321323
swedishTranslations,
322324
],

0 commit comments

Comments
 (0)