Skip to Content

How to achieve translation for the Odata service created on HCP

Aug 09, 2017 at 10:11 AM


avatar image
Former Member

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 ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers