thetrevorharmon / gatsby-theme-shopify-manager

The easiest way to start a Shopify shop on Gatsby.
https://gatsby-theme-shopify-manager.netlify.app/
MIT License
122 stars 12 forks source link

[i18n] Initialize client with language #68

Open ghost opened 4 years ago

ghost commented 4 years ago

The Shopify Buy JS SDK supports an optional language when initializing the client:

https://shopify.github.io/js-buy-sdk/config.js.html#line67

The option initializes the client to return translated content as shown here:

https://www.npmjs.com/package/shopify-buy#initializing-the-client

Would you accept a PR to add this as an optional configuration setting?

thetrevorharmon commented 4 years ago

I would love that! Please open a PR