initial commit

This commit is contained in:
black_zero
2026-03-01 21:26:34 +08:00
commit 05d5c4016f
38 changed files with 7617 additions and 0 deletions

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

@@ -0,0 +1,18 @@
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import { detectBrowserLanguage } from "./language";
import { resources } from "./resources";
if (!i18n.isInitialized) {
void i18n.use(initReactI18next).init({
resources,
lng: detectBrowserLanguage(),
fallbackLng: "en",
supportedLngs: ["en", "zh-CN"],
interpolation: {
escapeValue: false,
},
});
}
export { i18n };