vi.js 857 B

123456789101112131415161718192021222324252627282930313233
  1. // numeral.js locale configuration
  2. // locale : vietnam (vi)
  3. // author : Harry Nguyen : https://github.com/thaihoa311
  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', 'vi', {
  14. delimiters: {
  15. thousands: '.',
  16. decimal: ','
  17. },
  18. abbreviations: {
  19. thousand: ' nghìn',
  20. million: ' triệu',
  21. billion: ' tỷ',
  22. trillion: ' nghìn tỷ'
  23. },
  24. ordinal: function () {
  25. return '.';
  26. },
  27. currency: {
  28. symbol: '₫'
  29. }
  30. });
  31. }));