Looking to Localize strings in Payloads using a UDF?
We have a requirement to pass localized versions of strings back depending on the locale of the request.
For example if the locale passed in the request is is en-us we would have
I was hoping to leverage a UDF which calls a java function to do the translation passing in a code which would access a resource file which would have the different localized versions of the strings stored.
I noticed in the PI 7.1 java guide there was an interface LocalizationCallback which looked close
Has anyone had experience localizing strings in response payloads based on a locale passed in the request.
If so I'm ideally after an overview of how you did it.
If you did it using a User Definied function some sample code for a UDF would be great.