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 🙂