Localization in a web app using JavaScript and JSON

前端 未结 3 1960
灰色年华
灰色年华 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
    0 讨论(0)
  • 2021-02-12 20:55

    http://keith-wood.name/localisation.html

    https://github.com/coderifous/jquery-localize

    I don't have any personal experience in either but both appear to be fairly well documented.

    0 讨论(0)
  • 2021-02-12 21:04

    Depending on your needs, the jquery-localize function might work well. If you need a more complex structure that mirrors that of your website, the localize library might be more useful: https://github.com/kflorence/localize

    0 讨论(0)
提交回复
热议问题