From 626d92fc9af7e5e36057420b01c7e4817bcf5c5d Mon Sep 17 00:00:00 2001 From: pavanjoshi914 Date: Thu, 4 Apr 2024 11:51:03 +0530 Subject: [PATCH] feat: add fa locale --- src/i18n/i18nConfig.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/i18n/i18nConfig.ts b/src/i18n/i18nConfig.ts index 8acd934616..3bda0e6431 100644 --- a/src/i18n/i18nConfig.ts +++ b/src/i18n/i18nConfig.ts @@ -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"; @@ -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"; @@ -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` @@ -136,6 +144,7 @@ export const supportedLocales = [ { locale: "hi", label: "हिंदी" }, { locale: "mr", label: "मराठी" }, { locale: "th", label: "ไทย" }, + { locale: "fa", label: "فارسی" }, ]; i18n