Skip to content

Commit

Permalink
Merge branch 'feat/sc-table-migrations' of https://github.com/medusaj…
Browse files Browse the repository at this point in the history
…s/medusa into feat/sc-table-migrations
  • Loading branch information
kasperkristensen committed Jan 23, 2025
2 parents d585805 + 490650e commit d0c099b
Show file tree
Hide file tree
Showing 86 changed files with 9,357 additions and 441 deletions.
5 changes: 5 additions & 0 deletions .changeset/strange-queens-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/dashboard": minor
---

Added Simplified Chinese (zhCN) translations to admin dashboard
2 changes: 1 addition & 1 deletion packages/admin/admin-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"package.json"
],
"devDependencies": {
"@medusajs/types": "^2.3.1",
"@medusajs/types": "~2.3.1",
"@types/compression": "^1.7.5",
"copyfiles": "^2.4.1",
"express": "^4.21.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/admin-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"zod": "^3.22"
},
"dependencies": {
"@medusajs/admin-shared": "^2.3.1"
"@medusajs/admin-shared": "~2.3.1"
},
"peerDependencies": {
"zod": "^3.22"
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"zod": "3.22.4"
},
"devDependencies": {
"@medusajs/admin-shared": "^2.3.1",
"@medusajs/admin-shared": "~2.3.1",
"@medusajs/admin-vite-plugin": "2.3.1",
"@medusajs/types": "2.3.1",
"@medusajs/ui-preset": "2.3.1",
Expand Down
24 changes: 23 additions & 1 deletion packages/admin/dashboard/src/i18n/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ import {
th,
tr,
uk,
ro,
mk,
mn
mn,
ar,
zhCN
} from "date-fns/locale"

import { Language } from "./types"

export const languages: Language[] = [
Expand Down Expand Up @@ -82,6 +86,12 @@ export const languages: Language[] = [
ltr: true,
date_locale: uk,
},
{
code: "ro",
display_name: "Română",
ltr: true,
date_locale: ro,
},
{
code: "mk",
display_name: "Македонски",
Expand All @@ -94,4 +104,16 @@ export const languages: Language[] = [
ltr: true,
date_locale: mn,
},
{
code: "ar",
display_name: "العربية",
ltr: false,
date_locale: ar,
},
{
code: "zhCN",
display_name: "简体中文",
ltr: true,
date_locale: zhCN,
},
]
Loading

0 comments on commit d0c099b

Please sign in to comment.