fix: Remove hard-coded language, allow changing
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
63d3a44e4b
commit
7ec5de190d
@ -7,13 +7,10 @@ import HttpApi from "i18next-http-backend";
|
||||
/////////////////
|
||||
|
||||
async function initI18next() {
|
||||
// We use() the backend and await it to load
|
||||
// the translations from the network
|
||||
await i18next
|
||||
.use(HttpApi)
|
||||
.use(LanguageDetector)
|
||||
.init({
|
||||
lng: "en",
|
||||
supportedLngs: ["en", "de"],
|
||||
nonExplicitSupportedLngs: true,
|
||||
fallbackLng: "en",
|
||||
|
Loading…
Reference in New Issue
Block a user