UNPKG

1.01 kBJavaScriptView Raw
1// numeral.js locale configuration
2// locale : English Australia
3// author : Don Vince : https://github.com/donvince/
4
5(function (global, factory) {
6 if (typeof define === 'function' && define.amd) {
7 define(['../numeral'], factory);
8 } else if (typeof module === 'object' && module.exports) {
9 factory(require('../numeral'));
10 } else {
11 factory(global.numeral);
12 }
13}(this, function (numeral) {
14 numeral.register('locale', 'en-au', {
15 delimiters: {
16 thousands: ',',
17 decimal: '.'
18 },
19 abbreviations: {
20 thousand: 'k',
21 million: 'm',
22 billion: 'b',
23 trillion: 't'
24 },
25 ordinal: function (number) {
26 var b = number % 10;
27 return (~~ (number % 100 / 10) === 1) ? 'th' :
28 (b === 1) ? 'st' :
29 (b === 2) ? 'nd' :
30 (b === 3) ? 'rd' : 'th';
31 },
32 currency: {
33 symbol: '$'
34 }
35 });
36}));