I am NOT developing any web service application which contain client side and backend server side (like java EE application or Ruby on Rai
I read ceving's answer, and then write a JS library languages.js to do this.
I change the sequence of
s' with different languages, so it works if you want to switch lang in the page title.
Write HTML like this:
Test Page
测试页面
テストページ
miaw miaw miaw
Why does the sun rise? Why does the moon shine?
太阳为什么会升起?月亮为什么会发光?
太陽はなんで昇る?月はなぜ輝く?
miaw miaw miaw miaw miaw miaw miaw miaw miaw miaw miaw miaw miaw
Usage:
Languages.select(lang);
More detail: github readme