UNPKG

843 BJavaScriptView Raw
1/*!
2 * numeral.js language configuration
3 * language : simplified chinese
4 * author : badplum : https://github.com/badplum
5 */
6(function () {
7 var language = {
8 delimiters: {
9 thousands: ',',
10 decimal: '.'
11 },
12 abbreviations: {
13 thousand: '千',
14 million: '百万',
15 billion: '十亿',
16 trillion: '兆'
17 },
18 ordinal: function (number) {
19 return '.';
20 },
21 currency: {
22 symbol: '¥'
23 }
24 };
25
26 // Node
27 if (typeof module !== 'undefined' && module.exports) {
28 module.exports = language;
29 }
30 // Browser
31 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
32 this.numeral.language('chs', language);
33 }
34}());