Skip to content

Commit

Permalink
feat: add translation for zh-tw
Browse files Browse the repository at this point in the history
This PR adds the zh-tw translation for Medusa Admin.

All keys in zh-tw.json have been translated.
The file has been validated locally using yarn i18n:validate, and no issues were found.
  • Loading branch information
kermit1013 committed Jan 9, 2025
1 parent 635d026 commit dc286f6
Show file tree
Hide file tree
Showing 3 changed files with 2,854 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/admin/dashboard/src/i18n/languages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { de, enUS, es, fr, it, ja, pl, ptBR, th, tr, uk } from "date-fns/locale"
import { de, enUS, es, fr, it, ja, pl, ptBR, th, tr, uk, zhTW } from "date-fns/locale"
import { Language } from "./types"

export const languages: Language[] = [
Expand Down Expand Up @@ -68,4 +68,10 @@ export const languages: Language[] = [
ltr: true,
date_locale: uk,
},
{
code: "zhTW",
display_name: "繁體中文",
ltr: true,
date_locale: zhTW,
},
]
4 changes: 4 additions & 0 deletions packages/admin/dashboard/src/i18n/translations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ptBR from "./ptBR.json"
import th from "./th.json"
import tr from "./tr.json"
import uk from "./uk.json"
import zhTw from "./zh-tw.json"

export default {
de: {
Expand Down Expand Up @@ -44,4 +45,7 @@ export default {
uk: {
translation: uk,
},
zhTw: {
translation: zhTw,
},
}
Loading

0 comments on commit dc286f6

Please sign in to comment.