Skip to content

Langauge for checkout #943

Open
Open
@felixknox

Description

@felixknox

Hi

I am using js-buy-sdk for a headless web-shop.
"shopify-buy": "^2.18.0",

My shop supports two languages.
ja-JP and en-US.

When I buildClient and adding parameter like this (hardcoded for test purpose)
const client = Client.buildClient({ domain: process.env.NEXT_PUBLIC_SHOP, storefrontAccessToken: process.env.NEXT_PUBLIC_ACCESS_TOKEN, language: 'ja-JP', });
As stated in the docs

It still takes me to the english checkout.
I can confirm that the JA version of checkout works as I can navigate to that via the none-headless version of the web-shop.
But using this lib I am unable

Please advice what I am doing wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions