当前位置: 首页 > 工具软件 > Globalize > 使用案例 >

Globalize —— jQuery 官方国际化/本地化插件

潘泳
2023-12-01

Globalize 是利用官方 Unicode CLDR JSON 数据来进行国际化和本地化的 JavaScript 库。

浏览器支持:

Chrome: (Current - 1) or Current

Firefox: (Current - 1) or Current

Safari: 5.1+

Opera: 12.1x, (Current - 1) or Current

IE 8 (needs ES5 polyfill), IE9+

文件结构:

├── bower.json (metadata file)
├── CONTRIBUTING.md (doc file)
├── dist/ (consumable files, the built files)
├── external/ (external dependencies, eg. cldr.js, QUnit, RequireJS)
├── Gruntfile.js (Grunt tasks)
├── LICENSE.txt (license file)
├── package.json (metadata file)
├── README.md (doc file)
├── src/ (source code)
│   ├── build/ (build helpers, eg. intro, and outro)
│   ├── common/ (common function helpers across modules)
│   ├── core.js (core module)
│   ├── date/ (date source code)
│   ├── date.js (date module)
│   ├── message.js (message module)
│   ├── number.js (number module)
│   ├── number/ (number source code)
│   ├── plural.js (plural module)
│   ├── plural/ (plural source code)
│   └── util/ (basic JavaScript helpers polyfills, eg array.map)
└── test/ (unit and functional test files)
    ├── fixtures/ (CLDR fixture data)
    ├── functional/ (functional tests)
    ├── functional.html
    ├── functional.js
    ├── unit/ (unit tests)
    ├── unit.html
    └── unit.js

文章转载自 开源中国社区 [http://www.oschina.net]

 类似资料: