UNPKG

992 BJavaScriptView Raw
1/*!
2 * numeral.js language configuration
3 * language : english south africa (uk)
4 * author : Etienne Boshoff : etienne@zailab.com
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: 'R'
27 }
28 };
29
30 // Node
31 if (typeof module !== 'undefined' && module.exports) {
32 module.exports = language;
33 }
34 // Browser
35 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
36 this.numeral.language('en-za', language);
37 }
38}());
\No newline at end of file