Guest User

Untitled

a guest
Aug 17th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. // numeral.js locale configuration
  2. // locale : portuguese brazil (pt-br)
  3. // author : Ramiro Varandas Jr : https://github.com/ramirovjr
  4.  
  5. (function (global, factory) {
  6. if (typeof define === 'function' && define.amd) {
  7. define(['../numeral'], factory);
  8. } else if (typeof module === 'object' && module.exports) {
  9. factory(require('../numeral'));
  10. } else {
  11. factory(global.numeral);
  12. }
  13. }(this, function (numeral) {
  14. numeral.register('locale', 'pt-br', {
  15. delimiters: {
  16. thousands: '.',
  17. decimal: ','
  18. },
  19. abbreviations: {
  20. thousand:"mil",
  21. million:"milhões",
  22. billion:"b",
  23. trillion:"t"
  24. },
  25. ordinal: function (number) {
  26. return 'º';
  27. },
  28. currency: {
  29. symbol: 'R$'
  30. }
  31. });
  32. }));
  33.  
  34. abbreviations: {
  35. thousand: 'mil',
  36. million: 'mi',
  37. billion: 'bi',
  38. trillion: 'tri'
  39. },
Add Comment
Please, Sign In to add comment