This commit is contained in:
Lucas 2023-03-06 01:22:24 +01:00
parent b1d30b0010
commit 7652f6623c
2 changed files with 6 additions and 8 deletions

View file

@ -1,14 +1,11 @@
// 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"
$("[data-localize]").localize("main", { pathPrefix: "lang" });
// You can also override the language detection, and pass in a language code
//$("[data-localize]").localize("main", { language: "fr" });
function changeLangFR() {
$("[data-localize]").localize("main", {
pathPrefix: "lang",
language: "fr",
});
// 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", });
}
// This is a function that changes the language to English by calling the "localize" function with a language code of "en"
function changeLangEN() {
$("[data-localize]").localize("main", {
pathPrefix: "lang",

View file

@ -25,6 +25,7 @@ fetch(jsonsource)
selectColumn: true
},
multiSelect: true,
liveSearch: true,
multiSearch: true,
fixedBody: false,
records: test,