Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello Team,
I am using following GraphQL API to get product contents in multiple languages:
How can I pass "language code" like EN/FR/ES as an parameter in the above API request to get the proper response? Right now I am always getting response only in the English language.
Please help me out team. Waiting for your positive reply soon.
Thanks-
Sanjeev
Hi,
if your're still wondering about this, this worked for me:
query {
translatableResource(resourceId: "gid://shopify/Product/34524562462523") {
resourceId
translations(locale: "fr") {
key
value
}
}
}
See if I understood what you wanted, or if I misunderstood.
-Knut
Find Global Growth Opportunities For Your Business with Shopify AcademyLearn how to exp...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025