Work
All checks were successful
Lint / lint (push) Successful in 42s

This commit is contained in:
Julien Valverdé
2025-10-14 05:17:52 +02:00
parent eefb4481ec
commit 999fff8ddc
9 changed files with 82 additions and 114 deletions

View File

@@ -0,0 +1,21 @@
import i18n from "i18next"
import LanguageDetector from "i18next-browser-languagedetector"
import { initReactI18next } from "react-i18next"
import { en } from "./en"
import { fr } from "./fr"
export const resources = { en, fr } as const
await i18n
.use(initReactI18next)
.use(LanguageDetector)
.init({
supportedLngs: ["en", "fr"],
resources,
interpolation: {
escapeValue: false
},
})
export { i18n }