Skip to content

Commit

Permalink
Support spanish translation (#10213)
Browse files Browse the repository at this point in the history
Co-authored-by: Kasper Fabricius Kristensen <[email protected]>
  • Loading branch information
ederwii and kasperkristensen authored Nov 22, 2024
1 parent b558800 commit 60b13c1
Show file tree
Hide file tree
Showing 4 changed files with 2,782 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/six-cougars-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/dashboard": patch
---

feat(dashboard): Add Spanish i18n
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, pl, tr } from "date-fns/locale"
import { de, enUS, es, pl, tr } from "date-fns/locale"
import { Language } from "./types"

export const languages: Language[] = [
Expand All @@ -8,6 +8,12 @@ export const languages: Language[] = [
ltr: true,
date_locale: enUS,
},
{
code: "es",
display_name: "Español",
ltr: true,
date_locale: es,
},
{
code: "de",
display_name: "Deutsch",
Expand Down
Loading

0 comments on commit 60b13c1

Please sign in to comment.