You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
I have a few issues with locale, when changing locale and currency it does not persist when navigating to another page. Adding to cart also defaults to USD even if I'm on the same page. This happens on a local fork and on the demo provided.
Also, if anyone knows - how can I automatically select locale based on visitors country?
I understand this is just a tech demo, but would appreciate if anyone can point me in the right direction.
The text was updated successfully, but these errors were encountered:
If anyone runs into this: I solved the add to cart issue by adding selectedLocale.pathPrefix to the add to cart form POST destination. Also product card was not using the custom <Link> component with selectedLocale logic.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I have a few issues with locale, when changing locale and currency it does not persist when navigating to another page. Adding to cart also defaults to USD even if I'm on the same page. This happens on a local fork and on the demo provided.
Also, if anyone knows - how can I automatically select locale based on visitors country?
I understand this is just a tech demo, but would appreciate if anyone can point me in the right direction.
The text was updated successfully, but these errors were encountered: