Answer the question
In order to leave comments, you need to log in
Multilingual site without CMS?
How to make multilingual on a business card site? So far, it only comes to mind, by clicking on the English flag, hide the Russian text and show English using js. There is also an option to store in the database and ajax ohm to load and replace the text. So it’s more correct and on the business card website you need to do something like that.
Answer the question
In order to leave comments, you need to log in
Take for example https://www.i18next.com/ and don't sweat it.
Maybe it's better to use the lang attribute? At worst, make blocks of text with classes - languages ru_RU, en_GB, en_US, and then only change the style of the tag with Javascript
<style>.ru_RU {display: block;} .en_US, .en_GB{display: none;}</style>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question