Support spanish translation (#10213)
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
This commit is contained in:
5
.changeset/six-cougars-hear.md
Normal file
5
.changeset/six-cougars-hear.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/dashboard": patch
|
||||
---
|
||||
|
||||
feat(dashboard): Add Spanish i18n
|
||||
@@ -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[] = [
|
||||
@@ -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",
|
||||
|
||||
2766
packages/admin/dashboard/src/i18n/translations/es.json
Normal file
2766
packages/admin/dashboard/src/i18n/translations/es.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
import de from "./de.json"
|
||||
import en from "./en.json"
|
||||
import es from "./es.json"
|
||||
import pl from "./pl.json"
|
||||
import tr from "./tr.json"
|
||||
|
||||
@@ -7,6 +8,9 @@ export default {
|
||||
en: {
|
||||
translation: en,
|
||||
},
|
||||
es: {
|
||||
translation: es,
|
||||
},
|
||||
de: {
|
||||
translation: de,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user