33 lines
852 B
JavaScript
33 lines
852 B
JavaScript
|
// numeral.js locale configuration
|
||
|
// locale : simplified chinese (chs)
|
||
|
// author : badplum : https://github.com/badplum
|
||
|
|
||
|
(function (global, factory) {
|
||
|
if (typeof define === 'function' && define.amd) {
|
||
|
define(['../numeral'], factory);
|
||
|
} else if (typeof module === 'object' && module.exports) {
|
||
|
factory(require('../numeral'));
|
||
|
} else {
|
||
|
factory(global.numeral);
|
||
|
}
|
||
|
}(this, function (numeral) {
|
||
|
numeral.register('locale', 'chs', {
|
||
|
delimiters: {
|
||
|
thousands: ',',
|
||
|
decimal: '.'
|
||
|
},
|
||
|
abbreviations: {
|
||
|
thousand: '千',
|
||
|
million: '百万',
|
||
|
billion: '十亿',
|
||
|
trillion: '兆'
|
||
|
},
|
||
|
ordinal: function (number) {
|
||
|
return '.';
|
||
|
},
|
||
|
currency: {
|
||
|
symbol: '¥'
|
||
|
}
|
||
|
});
|
||
|
}));
|