Global expansion, localizing content, and selling in multiple currencies and languages
Seriously can't find this anywhere. If visitor chooses language "Spanish" for example, how do I save that for all future visits? I have a javascript around right now, but it involves a redirect on a re-visit, which I'm not a fan of. I'd prefer displaying spanish language immediately, without a redirect to "/es" folder. How would I achieve this? I've seen some website make it work, but can't figure it out myself and can't find any documentation either.
Language preference is saved to that browser's cookie, so there's nothing you need to do here. There isn't a redirect to /es folder, rather /es is where Spanish is (if that's how your store is setup), if that makes sense. Different languages have different URL paths
To learn more visit the Shopify Help Center or the Community Blog.
Thanks for the answer! I’m aware, but I noticed some website achieved language preference cookie saving, which loads automatically on a re-visit, without redirecting to the language folder. Website I’m talking about is pdpaola.com, if you want to check. Just change the language and then vidit the root again, translation stays, but no redirect occurs.
Thanks for sharing that @hazzardt . We took a look internally - they are saving a customer_locale
cookie which is custom to them; definitely not something Shopify does as standard. Our position is very much that a language should have its own URL structure. Sorry to not be able to be more help.
To learn more visit the Shopify Help Center or the Community Blog.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024