UNPKG

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