fr-ch.js 863 B

1234567891011121314151617181920212223242526272829303132
  1. // numeral.js locale configuration
  2. // locale : french (fr-ch)
  3. // author : Adam Draper : https://github.com/adamwdraper
  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', 'fr-ch', {
  14. delimiters: {
  15. thousands: '\'',
  16. decimal: '.'
  17. },
  18. abbreviations: {
  19. thousand: 'k',
  20. million: 'm',
  21. billion: 'b',
  22. trillion: 't'
  23. },
  24. ordinal : function (number) {
  25. return number === 1 ? 'er' : 'e';
  26. },
  27. currency: {
  28. symbol: 'CHF'
  29. }
  30. });
  31. }));