Website language not staying on reload

Hey guys,

I have a button that changes the website language. All works fine except when I reload the page, the language resets to English.

Any idea what could cause this?

Where are you storing the language selection?

Honestly, I don’t really know.

I’m using LocalizeJS and have also created a button that sets the website language.

Other than this I do not store the language selection

Are you using a plugin for this? or your own implementation?

I’ve tried both, but it doesn’t save it with either

Are you running the translate action on page load?

and you’ll need to store something somewhere…

The problem got solved, it turns out I had a condition that loaded the default language.

Thank you for your help and time @adamhholmes

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.