i18n for static html content

前端 未结 2 881
抹茶落季
抹茶落季 2021-01-14 01:07

I am building a website on the front of a REST API (this supports i18n) and i\'m not sure which way to go about internationalization. I have looked into js and html solution

2条回答
  •  余生分开走
    2021-01-14 01:22

    1) If you have only static content create different html files with different languages and put it in separate folder and access the site like

    for English
    http://yourdomain.com/en/english_index.html
    
    for French
    http://yourdomain.com/fr/french_index.html
    

    2) JSP also a good option if you have dynamic manipulation. Have a good option to maintain i18n resource boundle.

    I Suggest to go with option 1

提交回复
热议问题