feat: add translation for zh-CN (#10757)

* feat: add translation for zh-CN

* update: version to 2.3.1

* feat: add Simplified Chinese (zhCN) translations

* update some key to translate

* fix:Remove Duplicates
This commit is contained in:
Michael
2025-01-22 23:28:31 +08:00
committed by GitHub
parent 9321920227
commit 5ff45f27a1
4 changed files with 2946 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/dashboard": minor
---
Added Simplified Chinese (zhCN) translations to admin dashboard

View File

@@ -13,8 +13,10 @@ import {
ro,
mk,
mn,
ar
ar,
zhCN
} from "date-fns/locale"
import { Language } from "./types"
export const languages: Language[] = [
@@ -108,4 +110,10 @@ export const languages: Language[] = [
ltr: false,
date_locale: ar,
},
{
code: "zhCN",
display_name: "简体中文",
ltr: true,
date_locale: zhCN,
},
]

View File

@@ -13,6 +13,7 @@ import ro from "./ro.json"
import mk from "./mk.json"
import mn from "./mn.json"
import ar from "./ar.json"
import zhCN from "./zhCN.json"
export default {
de: {
@@ -60,4 +61,7 @@ export default {
ar: {
translation: ar,
},
zhCN: {
translation: zhCN,
},
}

File diff suppressed because it is too large Load Diff