fix: translate backend add log
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m48s

This commit is contained in:
2026-01-16 13:59:12 +01:00
parent 4bf07cc8f8
commit c456fdae8b
3 changed files with 10 additions and 2 deletions

View File

@@ -655,7 +655,7 @@ function combsPage() {
rootDiv.append(content)
}
export async function initCompetitionApi(apiUrlRoot_) {
export async function initCompetitionApi(apiUrlRoot_, host) {
apiUrlRoot = apiUrlRoot_;
const options = {
@@ -663,6 +663,10 @@ export async function initCompetitionApi(apiUrlRoot_) {
caches: [],
}
const backend = {
loadPath: `${host}/locales/{{lng}}/{{ns}}.json`,
}
await i18next
.use(i18nextHttpBackend)
.use(i18nextBrowserLanguagedetector)