Save and Load Data to Local Machine
Hello there,
Currently I am trying to implement website localization, so that the users would be able to switch between different languages.
I couldn't find much valuable information about this topic. What I thought of is save some file to the users local machine, like a json file, where I would store some values. Let's say language integer. If 0 one language, if 1 another and so on.
One problem is that I'm not sure how to do that.
How do I save a file and then load it again once the page is loaded and how would I read the data from the file? Also are there any better solutions to this problem? Thank you
