th.js 898 B

12345678910111213141516171819202122232425262728293031323334
  1. // numeral.js locale configuration
  2. // locale : thai (th)
  3. // author : Sathit Jittanupat : https://github.com/jojosati
  4. (function (global, factory) {
  5. if (typeof define === 'function' && define.amd) {
  6. define(['../numeral'], factory);
  7. } else if (typeof module === 'object' && module.exports) {
  8. factory(require('../numeral'));
  9. } else {
  10. factory(global.numeral);
  11. }
  12. }(this, function (numeral) {
  13. numeral.register('locale', 'th', {
  14. delimiters: {
  15. thousands: ',',
  16. decimal: '.'
  17. },
  18. abbreviations: {
  19. thousand: 'พัน',
  20. million: 'ล้าน',
  21. billion: 'พันล้าน',
  22. trillion: 'ล้านล้าน'
  23. },
  24. ordinal: function (number) {
  25. return '.';
  26. },
  27. currency: {
  28. symbol: '฿'
  29. }
  30. });
  31. }));