diff options
author | Alystrasz <contact@remyraes.com> | 2021-12-29 23:07:14 +0100 |
---|---|---|
committer | Alystrasz <contact@remyraes.com> | 2021-12-29 23:07:14 +0100 |
commit | a9744a0c5c6eaa9e17682c18e398ff9c5cf7e0fe (patch) | |
tree | 63ca1cdcd43a449b1c726bfd7b0f5c809ef2b58e /src/app/lang.js | |
parent | 220e890af373daa5765026f7b2e60e66b38fb189 (diff) | |
parent | 474f2ae54000463a0a2dfc84ad678a7620cc3d44 (diff) | |
download | Viper-a9744a0c5c6eaa9e17682c18e398ff9c5cf7e0fe.tar.gz Viper-a9744a0c5c6eaa9e17682c18e398ff9c5cf7e0fe.zip |
Merge branch 'main' into chore/french-translation
Diffstat (limited to 'src/app/lang.js')
-rw-r--r-- | src/app/lang.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/app/lang.js b/src/app/lang.js index 8cf3d4b..5cc9708 100644 --- a/src/app/lang.js +++ b/src/app/lang.js @@ -1,10 +1,12 @@ -html = document.body.innerHTML.split("%%"); +function setlang() { + html = document.body.innerHTML.split("%%"); -for (let i = 0; i < html.length; i++) { - if (html[i][0] != " " && - html[i][html[i].length - 1] != " ") { - html[i] = lang(html[i]) + for (let i = 0; i < html.length; i++) { + if (html[i][0] != " " && + html[i][html[i].length - 1] != " ") { + html[i] = lang(html[i]) + } } -} -document.body.innerHTML = html.join(""); + document.body.innerHTML = html.join(""); +} |