33 lines
835 B
JavaScript
33 lines
835 B
JavaScript
// numeral.js locale configuration
|
|
// locale : japanese
|
|
// author : teppeis : https://github.com/teppeis
|
|
|
|
(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', 'ja', {
|
|
delimiters: {
|
|
thousands: ',',
|
|
decimal: '.'
|
|
},
|
|
abbreviations: {
|
|
thousand: '千',
|
|
million: '百万',
|
|
billion: '十億',
|
|
trillion: '兆'
|
|
},
|
|
ordinal: function (number) {
|
|
return '.';
|
|
},
|
|
currency: {
|
|
symbol: '¥'
|
|
}
|
|
});
|
|
}));
|