1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | (function () {
|
7 | var language = {
|
8 | delimiters: {
|
9 | thousands: ',',
|
10 | decimal: '.'
|
11 | },
|
12 | abbreviations: {
|
13 | thousand: 'k',
|
14 | million: 'm',
|
15 | billion: 'b',
|
16 | trillion: 't'
|
17 | },
|
18 | ordinal: function (number) {
|
19 | var b = number % 10;
|
20 | return (~~ (number % 100 / 10) === 1) ? 'th' :
|
21 | (b === 1) ? 'st' :
|
22 | (b === 2) ? 'nd' :
|
23 | (b === 3) ? 'rd' : 'th';
|
24 | },
|
25 | currency: {
|
26 | symbol: '£'
|
27 | }
|
28 | };
|
29 |
|
30 |
|
31 | if (typeof module !== 'undefined' && module.exports) {
|
32 | module.exports = language;
|
33 | }
|
34 |
|
35 | if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
|
36 | this.numeral.language('en-gb', language);
|
37 | }
|
38 | }()); |
\ | No newline at end of file |