Open HowardYaw opened 3 years ago
How do you think we can achieve this? Storing text as variables in json format and load into page onselection using javascript?
Option1: Use JSON file to store content those are multi languages. Pros: Maintainability. Ease to maintain as content is updated on json files only Reference: https://stackoverflow.com/questions/46008760/how-to-build-multiple-language-website-using-pure-html-js-jquery https://www.codeproject.com/Tips/1165561/How-to-Create-a-Multilingual-Application-using-Jav https://www.jqueryscript.net/text/translate-json-multi-language.html
Option 2: Create Different html file for different languages Pros: Simple. No need to use JS to render content Cons: Maintainability. Need to maintain more that one html file when update content.
Option 3: Use Google Translate Pros: Simple and Maintainability. Cons: Accuracy. Depend on Google Translate accuracy. Some text might not deliver with message that expected. Unknown on dependency of Browser Compatibility Reference: https://www.lifewire.com/add-multiple-languages-to-website-3469545