UNPKG

988 BJavaScriptView Raw
1// numeral.js language configuration
2// language : Russian for the Ukraine (ru-UA)
3// author : Anatoli Papirovski : https://github.com/apapirovski
4(function () {
5 var language = {
6 delimiters: {
7 thousands: ' ',
8 decimal: ','
9 },
10 abbreviations: {
11 thousand: 'тыс.',
12 million: 'млн',
13 billion: 'b',
14 trillion: 't'
15 },
16 ordinal: function () {
17 // not ideal, but since in Russian it can taken on
18 // different forms (masculine, feminine, neuter)
19 // this is all we can do
20 return '.';
21 },
22 currency: {
23 symbol: '\u20B4'
24 }
25 };
26
27 // Node
28 if (typeof module !== 'undefined' && module.exports) {
29 module.exports = language;
30 }
31 // Browser
32 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
33 this.numeral.language('ru-UA', language);
34 }
35}());