Skip to content

Commit

Permalink
feat: add Thai language support (#10249)
Browse files Browse the repository at this point in the history
  • Loading branch information
oDestroyeRo authored Nov 25, 2024
1 parent ade1545 commit 1bd82a9
Show file tree
Hide file tree
Showing 3 changed files with 2,783 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, ptBR, tr } from "date-fns/locale"
import { de, enUS, es, pl, ptBR, tr, th } from "date-fns/locale"
import { Language } from "./types"

export const languages: Language[] = [
Expand Down Expand Up @@ -38,4 +38,10 @@ export const languages: Language[] = [
ltr: true,
date_locale: tr,
},
{
code: "th",
display_name: "ไทย",
ltr: true,
date_locale: th,
},
]
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 @@ -4,6 +4,7 @@ import es from "./es.json"
import pl from "./pl.json"
import ptBR from "./ptBR.json"
import tr from "./tr.json"
import th from "./th.json"

export default {
en: {
Expand All @@ -24,4 +25,7 @@ export default {
tr: {
translation: tr,
},
th: {
translation: th,
},
}
Loading

0 comments on commit 1bd82a9

Please sign in to comment.