Skip to content

Commit 53ee500

Browse files
committed
added setCustomLang v2.8.6
1 parent 9c37390 commit 53ee500

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

dist/jsgantt.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3236,6 +3236,12 @@ exports.includeGetSet = function () {
32363236
this.vLangs[pLang][vKey] = (pVals[vKey]) ? document.createTextNode(pVals[vKey]).data : this.vLangs['en'][vKey];
32373237
}
32383238
};
3239+
this.setCustomLang = function (pVals) {
3240+
this.vLangs[this.vLang] = new Object();
3241+
for (var vKey in this.vLangs['en']) {
3242+
this.vLangs[this.vLang][vKey] = (pVals[vKey]) ? document.createTextNode(pVals[vKey]).data : this.vLangs['en'][vKey];
3243+
}
3244+
};
32393245
this.setTotalHeight = function (pVal) { this.vTotalHeight = pVal; };
32403246
// EVENTS
32413247
this.setEvents = function (pEvents) { this.vEvents = pEvents; };

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsgantt-improved",
3-
"version": "2.8.5",
3+
"version": "2.8.6",
44
"description": "jsgantt-improved",
55
"main": "dist/index.js",
66
"scripts": {

src/options.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ export const includeGetSet = function () {
114114
for (let vKey in this.vLangs['en']) this.vLangs[pLang][vKey] = (pVals[vKey]) ? document.createTextNode(pVals[vKey]).data : this.vLangs['en'][vKey];
115115
}
116116
};
117+
this.setCustomLang = function (pVals) {
118+
this.vLangs[this.vLang] = new Object();
119+
for (var vKey in this.vLangs['en']) {
120+
this.vLangs[this.vLang][vKey] = (pVals[vKey]) ? document.createTextNode(pVals[vKey]).data : this.vLangs['en'][vKey];
121+
}
122+
};
117123
this.setTotalHeight = function (pVal) { this.vTotalHeight = pVal; };
118124

119125
// EVENTS

0 commit comments

Comments
 (0)