bg.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // numeral.js locale configuration
  2. // locale : Bulgarian
  3. // author : Don Vince : https://github.com/donvince/
  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', 'bg', {
  14. delimiters: {
  15. thousands: ' ',
  16. decimal: ','
  17. },
  18. abbreviations: { // I found these here http://www.unicode.org/cldr/charts/28/verify/numbers/bg.html
  19. thousand: 'хил',
  20. million: 'млн',
  21. billion: 'млрд',
  22. trillion: 'трлн'
  23. },
  24. ordinal: function (number) {
  25. // google translate suggests:
  26. // 1st=1-ви; 2nd=2-ри; 7th=7-ми;
  27. // 8th=8-ми and many others end with -ти
  28. // for example 3rd=3-ти
  29. // However since I've seen suggestions that in
  30. // Bulgarian the ordinal can be taken in
  31. // different forms (masculine, feminine, neuter)
  32. // I've opted to wimp out on commiting that to code
  33. return '';
  34. },
  35. currency: {
  36. symbol: 'лв'
  37. }
  38. });
  39. }));