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() {
|
async function initI18next() {
|
||||||
// We use() the backend and await it to load
|
|
||||||
// the translations from the network
|
|
||||||
await i18next
|
await i18next
|
||||||
.use(HttpApi)
|
.use(HttpApi)
|
||||||
.use(LanguageDetector)
|
.use(LanguageDetector)
|
||||||
.init({
|
.init({
|
||||||
lng: "en",
|
|
||||||
supportedLngs: ["en", "de"],
|
supportedLngs: ["en", "de"],
|
||||||
nonExplicitSupportedLngs: true,
|
nonExplicitSupportedLngs: true,
|
||||||
fallbackLng: "en",
|
fallbackLng: "en",
|
||||||
|
Loading…
Reference in New Issue
Block a user