Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Locale does not persist #117

Open
zamson opened this issue Feb 9, 2024 · 1 comment
Open

Locale does not persist #117

zamson opened this issue Feb 9, 2024 · 1 comment

Comments

@zamson
Copy link

zamson commented Feb 9, 2024

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.

@zamson
Copy link
Author

zamson commented Feb 22, 2024

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant