wrong translation in wijmo.culture.de-CH for FlexGridFilter.dateOperators

Posted by: anita.kurz on 7 March 2021, 8:52 pm EST

  • 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?
  • Replied 8 March 2021, 4:18 pm EST

    Hi Anita,

    I have forwarded a bug report regarding this to the dev team with internal tracking id WJM-19505. I will update you once this issue will be fixed.

    You may also refer to the sample link below that demonstrates how you can change the operators manually:

    https://codesandbox.io/s/eloquent-bouman-o9dzk

    Regards,
    Ashwin
  • Replied 29 March 2021, 2:50 pm EST

    Hi Anita,

    The issue has been fixed in the latest nightly build of Wijmo. You can verify the same using the sample link below:

    https://codesandbox.io/s/boring-kare-whhiu

    Note that nightly builds have not been passed through the QA cycles and are not suitable for the production environment.

    ~regards
  • Marked as Answer

    Replied 29 March 2021, 9:30 pm EST

    Hi Ashwin

    Thank you very much for the fix and the update.
    We will upgrade to the latest version (5.20211.782) once it is released.

    Regards,
    Anita
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels