feat: add ptBR (Brazilian Portuguese) in translations (#10188)
**Changelog** - Add translation in Portuguese (Brazil) - Updates test suites that validate translations (*.json) and corresponding $schema.json. Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
This commit is contained in:
1 parent
ae1c607f4e
commit
ade1545207
4 files changed
+2785
-1
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/dashboard": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
feat(dashboard): Add ptBR i18n
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { de, enUS, es, pl, tr } from "date-fns/locale"
|
import { de, enUS, es, pl, ptBR, tr } from "date-fns/locale"
|
||||||
import { Language } from "./types"
|
import { Language } from "./types"
|
||||||
|
|
||||||
export const languages: Language[] = [
|
export const languages: Language[] = [
|
||||||
@@ -26,6 +26,12 @@ export const languages: Language[] = [
|
|||||||
ltr: true,
|
ltr: true,
|
||||||
date_locale: pl,
|
date_locale: pl,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
code: "ptBR",
|
||||||
|
display_name: "Português (Brasil)",
|
||||||
|
ltr: true,
|
||||||
|
date_locale: ptBR,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
code: "tr",
|
code: "tr",
|
||||||
display_name: "Türkçe",
|
display_name: "Türkçe",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import de from "./de.json"
|
|||||||
import en from "./en.json"
|
import en from "./en.json"
|
||||||
import es from "./es.json"
|
import es from "./es.json"
|
||||||
import pl from "./pl.json"
|
import pl from "./pl.json"
|
||||||
|
import ptBR from "./ptBR.json"
|
||||||
import tr from "./tr.json"
|
import tr from "./tr.json"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -17,6 +18,9 @@ export default {
|
|||||||
pl: {
|
pl: {
|
||||||
translation: pl,
|
translation: pl,
|
||||||
},
|
},
|
||||||
|
ptBR: {
|
||||||
|
translation: ptBR,
|
||||||
|
},
|
||||||
tr: {
|
tr: {
|
||||||
translation: tr,
|
translation: tr,
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user