0

I want to change language in REST API.

ex.

  1. integration/customer/token for Japanese is "error message = Japanese translation"
  2. integration/customer/token for English is "error message = English translation"

Can I ?

I tried http://[mydomain/rest/[store_id]/V1/integration/customer/token

store_id = Japanese locale store, I set. (Default store is English locale)

=> response error message is English. ( I want Japanese response ...)

0

You have to add the store code before the /V1/

Example

  • you have 2 store views (store_en/store_ja) English and Japanese
  • if you call this api /store_en/V1/products, then you will retrieve all products for the store_en store view
  • if you call this api /store_ja/V1/products, then you will retrieve all products for the store_ja store view

so you only need to put the store code before the /V1/

  • Thank you for your information, but This is not I want. – 850 Nov 12 '18 at 11:13
  • I know, product API response is change language by store language. I want " error message language change" (ex. intengration, customer, ...)... – 850 Nov 12 '18 at 11:15
  • okay add note in question. – Aaditya Nov 16 '18 at 10:18

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.