Pega Date Range Calendar Localization
Hi,
I am trying to localize the Clear and Apply Button on the Date Range Calendar. Apply Button is localizaed correclty by using pyCaption But Clear does not get translated. I have checked and we Already have Apply field value as pyCaption in the baseclass (English to English). but we did not have Clear as a pyCaption fieldvalue in the baseclasss (English to English) so I have created it. but that did not help.
***Moderator Edit-Vidyaranjan: Updated Platform Capability***
Hi @SoniaF42,
This is a product BUG. Please raise Support Request (SR) to get assistance to fix the issue.
I'm able to replicate the problem in house and here is the analysis:
All the locale translations for the DateTime control are loaded from the rule
JS - pzpega_ui_calendar_util
In this file, there are translation exist for Apply (APPLY_TEXT) and Close (CLOSE_TEXT) but not for Clear (CLEAR_TEXT). Hence, though we create a field value for Clear it did not pick up at runtime.
All the translations exist in the rule pzpega_ui_calendar_util are picked by Date range control from the rule
JS - pzpega_ui_daterangepicker
In this rule the references to load the translation for clear text is referred as CLEAR_TEXT. As this does not exist in translation, the value becomes undefined and loads Clear as text at runtime.
So the change is going to be either updating the rule with CLEAR_TEXT translation value pzpega_ui_calendar_util rule or change the references of CLEAR_TEXT to CLOSE_TEXT in pzpega_ui_daterangepicker.
Please refer the link to this post in your SR description to expedite the resolution.
Thank you,
Regards, Cherb.