nl-be.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // numeral.js locale configuration
  2. // locale : dutch-belgium (nl-be)
  3. // author : Dieter Luypaert : https://github.com/moeriki
  4. // corrected : Olivier Godefroy : https://github.com/godefroyo
  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', 'nl-be', {
  15. delimiters: {
  16. thousands: ' ',
  17. decimal : ','
  18. },
  19. abbreviations: {
  20. thousand : 'k',
  21. million : ' mln',
  22. billion : ' mld',
  23. trillion : ' bln'
  24. },
  25. ordinal : function (number) {
  26. var remainder = number % 100;
  27. return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
  28. },
  29. currency: {
  30. symbol: '€ '
  31. }
  32. });
  33. }));