File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -3236,6 +3236,12 @@ exports.includeGetSet = function () {
3236
3236
this . vLangs [ pLang ] [ vKey ] = ( pVals [ vKey ] ) ? document . createTextNode ( pVals [ vKey ] ) . data : this . vLangs [ 'en' ] [ vKey ] ;
3237
3237
}
3238
3238
} ;
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
+ } ;
3239
3245
this . setTotalHeight = function ( pVal ) { this . vTotalHeight = pVal ; } ;
3240
3246
// EVENTS
3241
3247
this . setEvents = function ( pEvents ) { this . vEvents = pEvents ; } ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " jsgantt-improved" ,
3
- "version" : " 2.8.5 " ,
3
+ "version" : " 2.8.6 " ,
4
4
"description" : " jsgantt-improved" ,
5
5
"main" : " dist/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -114,6 +114,12 @@ export const includeGetSet = function () {
114
114
for ( let vKey in this . vLangs [ 'en' ] ) this . vLangs [ pLang ] [ vKey ] = ( pVals [ vKey ] ) ? document . createTextNode ( pVals [ vKey ] ) . data : this . vLangs [ 'en' ] [ vKey ] ;
115
115
}
116
116
} ;
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
+ } ;
117
123
this . setTotalHeight = function ( pVal ) { this . vTotalHeight = pVal ; } ;
118
124
119
125
// EVENTS
You can’t perform that action at this time.
0 commit comments