Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme-cart - Product translations #126

Open
brechtwaeghe opened this issue Jul 17, 2020 · 0 comments
Open

theme-cart - Product translations #126

brechtwaeghe opened this issue Jul 17, 2020 · 0 comments

Comments

@brechtwaeghe
Copy link

@brechtwaeghe brechtwaeghe commented Jul 17, 2020

At the moment the request to the cart.js doesn't fetch the translated content of the products such as the title.
Would it be possible to prefix the request url with the current root url?

For example when you translate your shop to French the root url will be /fr.
The ajax request to /cart.js fetches the products in the default language.
The products will be translated when you change the request to /fr/cart.js.

As a side note this should be mentioned in the docs as well:
https://shopify.dev/docs/themes/ajax-api/reference/cart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.