A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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!
Solved! Go to the solution
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
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
Thank you for your answer 🙂