Added i18n dependency
This commit is contained in:
10
01-frontend/src/components/i18n/i18n.ts
Normal file
10
01-frontend/src/components/i18n/i18n.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import i18next from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
import LanguageDetector from "i18next-browser-languagedetector";
|
||||
|
||||
i18next
|
||||
.use(initReactI18next) // Passes i18n down to react-i18next
|
||||
.use(LanguageDetector) // Detects user language
|
||||
.init({
|
||||
fallbackLng: "en"
|
||||
})
|
||||
Reference in New Issue
Block a user