Multi language checkout?

Veronika_R
Tourist
5 0 2

I'd recommend you LangShop. It's my favorite app - translates automatically into different languages AND it's possible to change currency there. I see you don't need currency variation but other features will be very handy for you I believe. 

0 Likes
doughnut-hole
New Member
1 0 1

 

const handleCheckout = () => {
    const checkoutJA = `${checkout.webUrl}&locale=ja`
    const checkoutEN = `${checkout.webUrl}&locale=en`

    //switch checkout language based on locale
    const checkoutUrl = intl.locale === "ja" ? checkoutJA : checkoutEN
    window.open(checkoutUrl)
}

 

(This is the reply to a previous question about how to redirect checkout URL based on locales).

You can simply add language parameter at the end of checkout URL.

In my case, I'm using react-intl to switch languages on my website (which is created with GatsbyJS by the way), so checkout URL can be switched based on intl locales like above.

As shopify buy button doesn't support language redirection officially, this is the simplest solution I've ever found out so far.

Cheers!