Globalize国际化和本地化 JavaScript 库
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
评论