Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add fa locale #3122

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading