Localization in a web app using JavaScript and JSON

前端 未结 3 1961
灰色年华
灰色年华 2021-02-12 20:09

I\'m trying to set up a script to automatically localize a web application. As the web application is intended to use HTML5\'s offline caching ability, it needs to be able to wo

3条回答
  •  难免孤独
    2021-02-12 20:52

    You can use Wikimedia's JQuery.i18n.

    • Documentation: https://github.com/wikimedia/jquery.i18n/wiki/API
    • Demo: http://thottingal.in/projects/js/jquery.i18n/demo/
    • Message Syntax: https://github.com/wikimedia/jquery.i18n/wiki/Message-Syntax

提交回复
热议问题