Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.
Solved

How to get store's default language with GraphQL

mtonev
Tourist
7 0 2

Hi,

How can I get the store's default language with GraphQL? (the one that is displayed here: https://xxxxxxxxxxxxx.myshopify.com/admin/settings/languages)

Thanks in advance for your answer!

Accepted Solution (1)

miguelcosta
Visitor
1 1 2

This is an accepted solution.

I know this is a late reply,
but for future reference, the answer is here:
https://shopify.dev/tutorials/manage-shop-locales-with-admin-api#retrieve-a-shops-locales

In short, to get the default language use the QueryRoot.shopLocales and make sure to collect the primary field.

hope it helps.
cheers

View solution in original post

Replies 2 (2)

miguelcosta
Visitor
1 1 2

This is an accepted solution.

I know this is a late reply,
but for future reference, the answer is here:
https://shopify.dev/tutorials/manage-shop-locales-with-admin-api#retrieve-a-shops-locales

In short, to get the default language use the QueryRoot.shopLocales and make sure to collect the primary field.

hope it helps.
cheers

mtonev
Tourist
7 0 2

Thank you for your answer 🙂