fil-PH.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*!
  2. * numbro.js language configuration
  3. * language : Filipino (Pilipino)
  4. * locale: Philippines
  5. * author : Michael Abadilla : https://github.com/mjmaix
  6. */
  7. (function () {
  8. 'use strict';
  9. var language = {
  10. langLocaleCode: 'fil-PH',
  11. cultureCode: 'fil-PH',
  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. }
  32. };
  33. // CommonJS
  34. if (typeof module !== 'undefined' && module.exports) {
  35. module.exports = language;
  36. }
  37. // Browser
  38. if (typeof window !== 'undefined' && window.numbro && window.numbro.culture) {
  39. window.numbro.culture(language.cultureCode, language);
  40. }
  41. }.call(typeof window === 'undefined' ? this : window));