Multi-language Checkout Page and Email Notifications Storefront API

Selecto
Visitor
3 0 0

Hi,

We have a multi-language store that has Storefront API implemented in it. We pass on the right customer language with the 'Accept-Language' in the header, but one the customer is redirected to Shopify the language is still English. We have both languages enabled in the Shopify Settings. Any help on how to make this work? 

Thanks a lot!

Reply 1 (1)

_JB
Shopify Staff
836 100 222

Hey @Selecto,

Just to clarify, you're saying the checkout is only rendering in English, correct? According to our guide for using translations with the storefront API, you can append a locale param to the checkout URL to force it to render in a different language. However based on the wording of that doc I would expect the accept-language header to be enough, so I'd like to investigate that further. Can you kindly provide a few example checkout tokens/checkout ids?

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog