Skip to Content
avatar image
Former Member

How to achieve translation for the Odata service created on HCP

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 ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers