I did localisation in my custom policy, but in certain steps I\'m calling REST API to validate some data. Response is coming in English, but now I need to translate that message
You can send the localisation parameter to the REST API and have it return a localised error. Or you can return back an error code from the API instead of an error string. Then use the following example to have this done in policy:
errorCode
string
A claim responsible for holding response codes to send to the relying party
Message
string
A claim responsible for holding response messages to send to the relying party
Paragraph
en
es
Self Asserted
User profile
- api.selfasserted