Skip to content

Commit

Permalink
feat: added Ukrainian translations (#10536)
Browse files Browse the repository at this point in the history
This pull request adds support for the Ukraine language in the MedusaJS Admin Dashboard.
Full translation, and json schema tests passed successfully
  • Loading branch information
Avia-Code authored Dec 10, 2024
1 parent 376b9e8 commit 777582a
Show file tree
Hide file tree
Showing 3 changed files with 2,847 additions and 1 deletion.
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, es, fr, it, ja, pl, ptBR, th, tr } from "date-fns/locale"
import { de, enUS, es, fr, it, ja, pl, ptBR, th, tr, uk } from "date-fns/locale"
import { Language } from "./types"

export const languages: Language[] = [
Expand Down Expand Up @@ -62,4 +62,10 @@ export const languages: Language[] = [
ltr: true,
date_locale: th,
},
{
code: "uk",
display_name: "Українська",
ltr: true,
date_locale: uk,
},
]
4 changes: 4 additions & 0 deletions packages/admin/dashboard/src/i18n/translations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import pl from "./pl.json"
import ptBR from "./ptBR.json"
import th from "./th.json"
import tr from "./tr.json"
import uk from "./uk.json"

export default {
de: {
Expand Down Expand Up @@ -40,4 +41,7 @@ export default {
tr: {
translation: tr,
},
uk: {
translation: uk,
},
}
Loading

0 comments on commit 777582a

Please sign in to comment.