36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
// numeral.js locale configuration
|
|
// locale : Russian for the Ukraine (ru-ua)
|
|
// author : Anatoli Papirovski : https://github.com/apapirovski
|
|
|
|
(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', 'ru-ua', {
|
|
delimiters: {
|
|
thousands: ' ',
|
|
decimal: ','
|
|
},
|
|
abbreviations: {
|
|
thousand: 'тыс.',
|
|
million: 'млн',
|
|
billion: 'b',
|
|
trillion: 't'
|
|
},
|
|
ordinal: function () {
|
|
// not ideal, but since in Russian it can taken on
|
|
// different forms (masculine, feminine, neuter)
|
|
// this is all we can do
|
|
return '.';
|
|
},
|
|
currency: {
|
|
symbol: '\u20B4'
|
|
}
|
|
});
|
|
}));
|