Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro270707 committed Nov 22, 2023
2 parents d8a58b9 + cffd4c1 commit 23fb24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Translate {
}

async reloadLoc() {
this.file = await fetch('./language/' + (this.language ? this.language : localStorage.language) + '.json');
this.file = await fetch('/language/' + (this.language ? this.language : localStorage.language) + '.json');
let allElements = document.getElementsByTagName("*");
for (let currentElement of allElements) {
const keyAttribute = currentElement.getAttribute("data-string");
Expand Down Expand Up @@ -97,4 +97,4 @@ var translate = new Translate();

function reloadLanguage() {
translate.reloadLoc();
}
}

0 comments on commit 23fb24c

Please sign in to comment.