Skip to content

Commit

Permalink
feat: add Polish language support (#9770)
Browse files Browse the repository at this point in the history
Co-authored-by: Kasper Fabricius Kristensen <[email protected]>
  • Loading branch information
nexthis and kasperkristensen authored Nov 11, 2024
1 parent a151865 commit 5c22c57
Show file tree
Hide file tree
Showing 4 changed files with 2,771 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wet-cows-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/dashboard": patch
---

feat(dashboard): Add Polish translation of admin dashboard
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 { enUS } from "date-fns/locale"
import { enUS, pl } from "date-fns/locale"
import { Language } from "./types"

export const languages: Language[] = [
Expand All @@ -8,4 +8,10 @@ export const languages: Language[] = [
ltr: true,
date_locale: enUS,
},
{
code: "pl",
display_name: "Polish",
ltr: true,
date_locale: pl,
},
]
4 changes: 4 additions & 0 deletions packages/admin/dashboard/src/i18n/translations/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import en from "./en.json"
import pl from "./pl.json"
export default {
en: {
translation: en,
},
pl: {
translation: pl,
},
}
Loading

0 comments on commit 5c22c57

Please sign in to comment.