-
+
fateforge-tools
-
+
@@ -66,7 +65,7 @@
-
+
diff --git a/js/language.js b/js/language.js
index ede6016..7baab8d 100644
--- a/js/language.js
+++ b/js/language.js
@@ -1,11 +1,12 @@
-// This code selects all elements in the HTML document with the "data-localize" attribute // and applies the jQuery "localize" function to them with the "main" localization file and a path prefix of "lang"
+// this code localizes all elements with a "data-localize" attribute
$("[data-localize]").localize("main", { pathPrefix: "lang" });
-// This is a function that changes the language to French by calling the "localize" function with a language code of "fr"
-function changeLangFR() { $("[data-localize]").localize("main", { pathPrefix: "lang", language: "fr", });
-}
+// You can also override the language detection and specify a language code. This code defines a function that sets the language to French.
+function changeLangFR() { $("[data-localize]").localize("main", { pathPrefix: "lang", language: "fr", }); }
-// This is a function that changes the language to English by calling the "localize" function with a language code of "en"
+
+
+// This code defines a function that sets the language to English.
function changeLangEN() {
$("[data-localize]").localize("main", {
pathPrefix: "lang",