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.

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

Translate custom pages by API

Translate custom pages by API

Jancso
Shopify Partner
2 0 0

Hello,

 

How could you translate a custom page via API? I found out that GraphQL API could help me, but I can't find any example on the whole web.

Any idea?

 

Thanks!

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 239 535

Hey @Jancso

 

We have a guide here that goes through the process of translating resources via API. https://shopify.dev/docs/apps/selling-strategies/markets/translate-content 

 

Since you're looking to translate a custom page, the translatable resource you'll need is the ONLINE_STORE_PAGE  https://shopify.dev/docs/api/admin-graphql/2024-01/enums/TranslatableResourceType#value-onlinestorep...

Hope that helps, 

 

Kyle G. 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog