Support spanish translation (#10213)
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
This commit is contained in:
co-authored by
Kasper Fabricius Kristensen
parent
b558800547
commit
60b13c191e
@@ -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"
|
import { Language } from "./types"
|
||||||
|
|
||||||
export const languages: Language[] = [
|
export const languages: Language[] = [
|
||||||
@@ -8,6 +8,12 @@ export const languages: Language[] = [
|
|||||||
ltr: true,
|
ltr: true,
|
||||||
date_locale: enUS,
|
date_locale: enUS,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
code: "es",
|
||||||
|
display_name: "Español",
|
||||||
|
ltr: true,
|
||||||
|
date_locale: es,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
code: "de",
|
code: "de",
|
||||||
display_name: "Deutsch",
|
display_name: "Deutsch",
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
|||||||
import de from "./de.json"
|
import de from "./de.json"
|
||||||
import en from "./en.json"
|
import en from "./en.json"
|
||||||
|
import es from "./es.json"
|
||||||
import pl from "./pl.json"
|
import pl from "./pl.json"
|
||||||
import tr from "./tr.json"
|
import tr from "./tr.json"
|
||||||
|
|
||||||
@@ -7,6 +8,9 @@ export default {
|
|||||||
en: {
|
en: {
|
||||||
translation: en,
|
translation: en,
|
||||||
},
|
},
|
||||||
|
es: {
|
||||||
|
translation: es,
|
||||||
|
},
|
||||||
de: {
|
de: {
|
||||||
translation: de,
|
translation: de,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user