This commit is contained in:
n4ze3m
2024-03-24 12:43:43 +05:30
parent 4055231bbc
commit 9a2adbd859
27 changed files with 725 additions and 3616 deletions

18
src/i18n/index.ts Normal file
View File

@@ -0,0 +1,18 @@
import i18n from "i18next";
import LanguageDetector from "i18next-browser-languagedetector";
import { initReactI18next } from "react-i18next";
import { en } from "./lang/en";
i18n
.use(LanguageDetector)
.use(initReactI18next)
.init({
debug: true,
resources: {
en: en
},
fallbackLng: "en",
lng: localStorage.getItem("i18nextLng") || "en",
})
export default i18n;

6
src/i18n/lang/en.ts Normal file
View File

@@ -0,0 +1,6 @@
import option from "@/assets/locale/en/option.json";
export const en = {
option
}