Getting store's locales with the Admin API

New Member
3 0 0

I am trying to work with shopify multilanguage. Specifically, I want to get all store's locale through a restful request. The document https://help.shopify.com/en/api/guides/shop-locales#locale-formats specified the request body for the task, but I can't see where the endpoint should that request be fired to is.

0 Likes
Community Manager
Community Manager
317 16 73

HI @kiennguyen ,

 

The shop's locale in the  REST API is located on the shop.json endpoint.  See our docs here.  Specifically

 

GET /admin/api/2019-07/shop.json

will return amongst other things:

"primary_locale": "en",   

 Hope that helps,

Ryan

Developer Experience @ Shopify
0 Likes
New Member
3 0 0

Thank you for the reply,

That's not what I meant to ask :) I want to detect all locales (language) that the merchant is using. The document https://help.shopify.com/en/api/guides/shop-locales#locale-formats specifies the thing I need, but I just can't find the endpoint which needed to be requested to in that document. Am I missing something?

Thank you!

0 Likes
Community Manager
Community Manager
317 16 73

I believe that is only available in GraphQL as per the document you linked. Rest only exposed the current locale to my knowledge.

Developer Experience @ Shopify
0 Likes