Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to get store's default language with GraphQL

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 🙂