doujia4041 2012-06-09 21:37
浏览 19
已采纳

国际化webapp javascript

I'm developing a webapp which consumes its own API to show the contents, and it's javascript through AJAX who does it.
When I worked with serverside processing (php) I used gettext, but now I don't know how to translate the strings generated with javascript.
How I can do it?
Thanks

  • 写回答

1条回答 默认 最新

  • duanhan3067 2012-06-09 21:40
    关注

    If you are familiar with use of Gettext, than use it's JS implementation

    http://jsgettext.berlios.de/

    And load your language catalogs via calling API and using localStorage as cache

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?