Is it possible to get translated text in API response while testing the API in postman? I have already added required csv i18n folder in the path: app/code folder.

I am passing store code into the url like this in my custom api call: /rest/ar_sa/V1/contact

I am getting message in english only. I need to get that message in Arabic while ar_sa is pass into url.

Does any one have solution of this ?

  • the rest of the store-view is in the correct language? – Philipp Sander Jan 29 '19 at 12:39
  • @PhilippSander All store views are in the correct language. I am having two different site with two stores in each. One is english store view and second is arabic. – Hiren Pandya Jan 29 '19 at 12:51
  • where did you place the csv file exactly (like full path from magento root including the filename itself)? – David Verholen Jan 29 '19 at 13:05
  • @DavidVerholen Here is the full path : webroot/magento2/app/i18n/mageplaza/ar_sa/ar_SA.csv – Hiren Pandya Jan 29 '19 at 13:07

Put the ar_SA.csv file here:


Clear cache:

sudo php bin/magento cache:flush

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.