en-AU.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*!
  2. * numbro.js language configuration
  3. * language : English
  4. * locale: Australia
  5. * author : Benedikt Huss : https://github.com/ben305
  6. */
  7. (function () {
  8. 'use strict';
  9. var language = {
  10. langLocaleCode: 'en-AU',
  11. cultureCode: 'en-AU',
  12. delimiters: {
  13. thousands: ',',
  14. decimal: '.'
  15. },
  16. abbreviations: {
  17. thousand: 'k',
  18. million: 'm',
  19. billion: 'b',
  20. trillion: 't'
  21. },
  22. ordinal: function (number) {
  23. var b = number % 10;
  24. return (~~ (number % 100 / 10) === 1) ? 'th' :
  25. (b === 1) ? 'st' :
  26. (b === 2) ? 'nd' :
  27. (b === 3) ? 'rd' : 'th';
  28. },
  29. currency: {
  30. symbol: '$',
  31. position: 'prefix'
  32. },
  33. defaults: {
  34. currencyFormat: ',4 a'
  35. },
  36. formats: {
  37. fourDigits: '4 a',
  38. fullWithTwoDecimals: '$ ,0.00',
  39. fullWithTwoDecimalsNoCurrency: ',0.00',
  40. fullWithNoDecimals: '$ ,0'
  41. }
  42. };
  43. // CommonJS
  44. if (typeof module !== 'undefined' && module.exports) {
  45. module.exports = language;
  46. }
  47. // Browser
  48. if (typeof window !== 'undefined' && window.numbro && window.numbro.culture) {
  49. window.numbro.culture(language.cultureCode, language);
  50. }
  51. }.call(typeof window === 'undefined' ? this : window));