feat: Support Persian

#715
This commit is contained in:
MystiPanda
2024-03-21 20:51:33 +08:00
parent c200e18434
commit 2d1fdb319d
3 changed files with 6 additions and 1 deletions

View File

@@ -3,16 +3,19 @@ import { initReactI18next } from "react-i18next";
import en from "@/locales/en.json";
import ru from "@/locales/ru.json";
import zh from "@/locales/zh.json";
import fa from "@/locales/fa.json";
const resources = {
en: { translation: en },
ru: { translation: ru },
zh: { translation: zh },
fa: { translation: fa },
};
i18n.use(initReactI18next).init({
resources,
lng: "en",
fallbackLng: "en",
interpolation: {
escapeValue: false,
},