Five-Fishes / third-cc-website

Web Page to display info related to club and various important info.
0 stars 0 forks source link

Multiple languages #17

Open HowardYaw opened 3 years ago

HowardYaw commented 3 years ago
LUXIANZE commented 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?

HowardYaw commented 3 years ago

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