Custom currency picker in hydrogen?

I’ve been trying to make a custom picker where the user can just select a Currency from a list, and the page would just change the display prices accordingly, i’ve already set up the different markets and i’ve been reading the documentation on localization however updating the whole project structure just to add URL/subdomain based localization seems a little overkill for what i’ve been trying to do, i’ve noticed that simply changing the i18n parameter in server.js to whatever language/country combination i need seems to work perfectly but i haven’t found a way to get a custom component to dynamically modify the i18n parameter to what the user picks. is it possible to do it that like or am i stuck with the url/subdomain method? Any help appreciated.

2 Likes