Skip to content

Commit

Permalink
feat: add fa locale
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Apr 4, 2024
1 parent a42813c commit 626d92f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/i18n/i18nConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import "dayjs/locale/cs";
import "dayjs/locale/da";
import "dayjs/locale/es";
import "dayjs/locale/fa";
import "dayjs/locale/fi";
import "dayjs/locale/fr";
import "dayjs/locale/hi";
Expand All @@ -20,6 +21,7 @@ import da from "~/i18n/locales/da/translation.json";
import de from "~/i18n/locales/de/translation.json";
import en from "~/i18n/locales/en/translation.json";
import es from "~/i18n/locales/es/translation.json";
import fa from "~/i18n/locales/fa/translation.json";
import fr from "~/i18n/locales/fr/translation.json";
import hi from "~/i18n/locales/hi/translation.json";
import it from "~/i18n/locales/it/translation.json";
Expand Down Expand Up @@ -117,6 +119,12 @@ export const resources = {
components: zh_Hans.components,
permissions: zh_Hans.permissions,
},
fa: {
translation: fa.translation,
common: fa.common,
components: fa.components,
permissions: fa.permissions,
},
} as const;

// needs to be aligned with `resources`
Expand All @@ -136,6 +144,7 @@ export const supportedLocales = [
{ locale: "hi", label: "हिंदी" },
{ locale: "mr", label: "मराठी" },
{ locale: "th", label: "ไทย" },
{ locale: "fa", label: "فارسی" },
];

i18n
Expand Down

0 comments on commit 626d92f

Please sign in to comment.