Skip to content

Commit

Permalink
feat: support Vietnamese language
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphilius committed Nov 24, 2024
1 parent 96b8963 commit 9b8090c
Show file tree
Hide file tree
Showing 3 changed files with 2,777 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, pl, tr } from "date-fns/locale"
import { de, enUS, es, pl, tr, vi } from "date-fns/locale"
import { Language } from "./types"

export const languages: Language[] = [
Expand Down Expand Up @@ -32,4 +32,10 @@ export const languages: Language[] = [
ltr: true,
date_locale: tr,
},
{
code: "vi",
display_name: "Tiếng Việt",
ltr: true,
date_locale: vi,
},
]
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 @@ -3,6 +3,7 @@ import en from "./en.json"
import es from "./es.json"
import pl from "./pl.json"
import tr from "./tr.json"
import vi from "./tr.json"

export default {
en: {
Expand All @@ -20,4 +21,7 @@ export default {
tr: {
translation: tr,
},
vi: {
translation: vi,
},
}
Loading

0 comments on commit 9b8090c

Please sign in to comment.