How to make a multilingual website?

1

I've already been researching the subject on this site and in others, and this question seemed to me the most complete: #, my question is: do you need to do with the language arrays, ... or can I simply duplicate the page, for example: index. html and do an index_es.html and do so for all? And if so, does this method have any drawbacks, or is it wrong to use it?

    
asked by anonymous 25.06.2018 / 12:33

1 answer

3

If you look carefully, Blogspot, Facebook, Google, Amazon primarily, all these multinational companies have different directories for different languages.

What you can do is on your website, make a hyperlink with the country flag in a top right or left corner and thus, go to a different directory.

I think it's less painful and less likely to error.

Another thing you can do is to have a .txt file for a language. In that file, enter a list of the most common words of a language and then make a script where the words in the person's browser history are captured. If the words in the history match the words in the .txt file of the desired language, update the website to the language you want.

For example, a Frenchman has French words in his history. The script will capture these words and search for them in .txt files. When the words in the history match the words in the French language .txt file, the website updates.

    
25.06.2018 / 13:21