mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-21 10:55:04 -05:00
21 lines
472 B
TypeScript
21 lines
472 B
TypeScript
import i18n from "i18next"
|
|
import { initReactI18next } from "react-i18next"
|
|
import LanguageDetector from "i18next-browser-languagedetector"
|
|
import Backend from "i18next-http-backend"
|
|
|
|
i18n
|
|
.use(Backend)
|
|
.use(LanguageDetector)
|
|
.use(initReactI18next)
|
|
.init({
|
|
fallbackLng: "en",
|
|
keySeparator: ";",
|
|
returnEmptyString: false,
|
|
debug: process.env.NODE_ENV === "development",
|
|
interpolation: {
|
|
escapeValue: false,
|
|
},
|
|
})
|
|
|
|
export default i18n
|