zh-TW.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*!
  2. * numbro.js language configuration
  3. * language : Chinese (Taiwan)
  4. * author (numbro.js Version): Randy Wilander : https://github.com/rocketedaway
  5. * author (numeral.js Version) : Rich Daley : https://github.com/pedantic-git
  6. */
  7. (function () {
  8. 'use strict';
  9. var language = {
  10. langLocaleCode: 'zh-TW',
  11. cultureCode: 'zh-TW',
  12. delimiters: {
  13. thousands: ',',
  14. decimal: '.'
  15. },
  16. abbreviations: {
  17. thousand: '千',
  18. million: '百萬',
  19. billion: '十億',
  20. trillion: '兆'
  21. },
  22. ordinal: function () {
  23. return '第';
  24. },
  25. currency: {
  26. symbol: 'NT$'
  27. }
  28. };
  29. // CommonJS
  30. if (typeof module !== 'undefined' && module.exports) {
  31. module.exports = language;
  32. }
  33. // Browser
  34. if (typeof window !== 'undefined' && window.numbro && window.numbro.culture) {
  35. window.numbro.culture(language.cultureCode, language);
  36. }
  37. }.call(typeof window === 'undefined' ? this : window));