aboutsummaryrefslogtreecommitdiff
path: root/src/app/lang.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-29 23:33:30 +0100
committer0neGal <mail@0negal.com>2021-12-29 23:33:30 +0100
commit9d4515fd408c38ad081c010e052b2960f5fe3dfe (patch)
treeffd6528723e7fb4e5e6f99027683794226f22a2d /src/app/lang.js
parentdcbdadbe3568beca429b0df5caf96156ee43f474 (diff)
parent74cb566e5ea97f62121fbd7b2cc170b94d36f0bb (diff)
downloadViper-9d4515fd408c38ad081c010e052b2960f5fe3dfe.tar.gz
Viper-9d4515fd408c38ad081c010e052b2960f5fe3dfe.zip
Merge branch 'feat/version-indicator' of https://github.com/Alystrasz/viper into feat/icon
Diffstat (limited to 'src/app/lang.js')
-rw-r--r--src/app/lang.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app/lang.js b/src/app/lang.js
new file mode 100644
index 0000000..5cc9708
--- /dev/null
+++ b/src/app/lang.js
@@ -0,0 +1,12 @@
+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])
+ }
+ }
+
+ document.body.innerHTML = html.join("");
+}