mirror of https://gitee.com/bigwinds/arangodb
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
/*!
|
|
* numeral.js language configuration
|
|
* language : spanish Spain
|
|
* author : Hernan Garcia : https://github.com/hgarcia
|
|
*/
|
|
(function () {
|
|
var language = {
|
|
delimiters: {
|
|
thousands: '.',
|
|
decimal: ','
|
|
},
|
|
abbreviations: {
|
|
thousand: 'k',
|
|
million: 'mm',
|
|
billion: 'b',
|
|
trillion: 't'
|
|
},
|
|
ordinal: function (number) {
|
|
var b = number % 10;
|
|
return (b === 1 || b === 3) ? 'er' :
|
|
(b === 2) ? 'do' :
|
|
(b === 7 || b === 0) ? 'mo' :
|
|
(b === 8) ? 'vo' :
|
|
(b === 9) ? 'no' : 'to';
|
|
},
|
|
currency: {
|
|
symbol: '€'
|
|
}
|
|
};
|
|
|
|
// Node
|
|
if (typeof module !== 'undefined' && module.exports) {
|
|
module.exports = language;
|
|
}
|
|
// Browser
|
|
if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
|
|
this.numeral.language('es', language);
|
|
}
|
|
}());
|