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 238 498

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