Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to achieve translation for the Odata service created on HCP

Former Member
0 Kudos

I have created an odata service on HCP . And some exists for create,update and delete scenario on database . There are some validations before any CRUD operation is performed and an appropriate error message is returned to the user in case any validation fails . I want to achieve the translation for this error message . Currently i am getting the following response

{ "error": { "code": "", "message": { "lang": "en-US", "value": "Invalid DisplayName" }, "innererror": { "errordetail": { "DETAIL": "DisplayName can not be blank" } } } }

I am able to change the "innererror " section and also the "value" of "message" in "error" but i am not sure from where is it picking the lang . Also if i can change this ? And how can i achieve the translation for my error message depending on language ?

0 REPLIES 0