Localize Strings in Javascript

前端 未结 12 1484
长发绾君心
长发绾君心 2020-11-28 05:52

I\'m currently using .resx files to manage my server side resources for .NET.

the application that I am dealing with also allows developers to plugin Ja

12条回答
  •  感情败类
    2020-11-28 05:56

    There's a library for localizing JavaScript applications: https://github.com/wikimedia/jquery.i18n

    It can do parameter replacement, supports gender (clever he/she handling), number (clever plural handling, including languages that have more than one plural form), and custom grammar rules that some languages need.

    The strings are stored in JSON files.

    The only requirement is jQuery.

提交回复
热议问题