What are the options for making a simple static website multilingual?

后端 未结 2 803
梦毁少年i
梦毁少年i 2021-02-15 13:25

I\'m setting up a static website which I want to display in two languages.

I can\'t find a comprehensive overview of the different options (e.g. server-side loading vs

2条回答
  •  旧时难觅i
    2021-02-15 13:51

    I don't think you need to bother with a library at all if all you are doing is text translation. All you need to do is write a simple function which switches between two (or more) json language files and a mechanism to display the right string from the selected json file.

提交回复
热议问题