Question

1
Replies
265
Views
Close popover
Onkar Yerawar (OnkarY33)
Infosys
Onkar Yerawar
Infosys
NL
OnkarY33 Member since 2013 17 posts
Infosys
Posted: February 19, 2020
Last activity: March 20, 2020

Is there a way get localized text in a specific language?

I have a requirement where in my service activity I want to return the localized value of pyStatusWork property of a case in Dutch language. I have the translation in place but if I use the function @Utilities.getLocalizedText("Resolved-Cancelled", "pyStatusWork", tools) it returns me value Resolved-Cancelled which is in ruleset XYZ and not value Verzoek ingetrokken which is in ruleset XYZ_nl. I know that this happens because my service requestor does not have XYZ_nl in it's ruleset stack. My question is there any OOTB way to get localized value in a specific language by passing a parameter like locale/language?

Or is there a way to look for java code behind function getLocalizedTextForString which is used by above mentioned rule utility function?

Thanks & regards,

Onkar

Pega Platform 8.3 Low-Code App Development Financial Services Senior System Architect