Case is not localized to default locale after case completion
The default Spanish locale is changed to English and a case is completed. After the case is completed, the screen returns to the Case List. However, the case does not switch back to the default Spanish locale after and parts of the screen reflect in English.
Before starting the case:
After case completion:
Steps to Reproduce
- Update operator locale to 'es_PR' in Designer Studio
- Log in to the mobile application
- Open a case from the Case List
- Change the locale on selected case to 'en_US' (English) so that the section reloads in English
- Complete the case
- Return to the Case List screen. Parts of the Case List screen are translated to Spanish and others are not
There are custom functions that invoke the pega.clientTools.switchLocale method followed by the pega.u.d.refreshSection API. However, the call to pega.clientTools.switchLocale method is asynchronous.