update
This commit is contained in:
parent
b1d30b0010
commit
7652f6623c
2 changed files with 6 additions and 8 deletions
|
@ -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",
|
||||
|
|
|
@ -25,6 +25,7 @@ fetch(jsonsource)
|
|||
selectColumn: true
|
||||
},
|
||||
multiSelect: true,
|
||||
liveSearch: true,
|
||||
multiSearch: true,
|
||||
fixedBody: false,
|
||||
records: test,
|
||||
|
|
Loading…
Reference in a new issue