fix: translate backend add log
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m48s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m48s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user