Posted 7 March 2021, 8:52 pm EST
In the Swiss German culture, the name of the “Is Before” and “Is After” date operators of the flexGrid date filter are not translated. They should be the same as in wijmo.culture.de
“Is Before” => “Ist vor”
“Is After” => “Ist nach”
I haven’t found a way to change these mistakes after I loaded the culture.
I tried (not working):
if (wijmoCulture === 'de-CH') {
const dateOperators = window['wijmo']?.culture?.FlexGridFilter?.dateOperators;
if (dateOperators && dateOperators.length > 0) {
for (const translation of dateOperators) {
switch (translation.name) {
case 'Is Before':
translation.name = 'Ist vor';
break;
case 'Is After':
translation.name = 'Ist nach';
break;
}
}
}
Control.invalidateAll();
}
For the moment I have my own copy of the adjusted culture, which causes some troubles when updating the library. Would it be possible to fix the translation?