de-CH.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*!
  2. * numbro.js language configuration
  3. * language : German
  4. * locale: Switzerland
  5. * author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky)
  6. */
  7. (function () {
  8. 'use strict';
  9. var language = {
  10. langLocaleCode: 'de-CH',
  11. cultureCode: 'de-CH',
  12. delimiters: {
  13. thousands: '\'',
  14. decimal: '.'
  15. },
  16. abbreviations: {
  17. thousand: 'k',
  18. million: 'm',
  19. billion: 'b',
  20. trillion: 't'
  21. },
  22. ordinal: function () {
  23. return '.';
  24. },
  25. currency: {
  26. symbol: 'CHF',
  27. position: 'postfix'
  28. },
  29. defaults: {
  30. currencyFormat: ',4 a'
  31. },
  32. formats: {
  33. fourDigits: '4 a',
  34. fullWithTwoDecimals: ',0.00 $',
  35. fullWithTwoDecimalsNoCurrency: ',0.00',
  36. fullWithNoDecimals: ',0 $'
  37. }
  38. };
  39. // CommonJS
  40. if (typeof module !== 'undefined' && module.exports) {
  41. module.exports = language;
  42. }
  43. // Browser
  44. if (typeof window !== 'undefined' && window.numbro && window.numbro.culture) {
  45. window.numbro.culture(language.cultureCode, language);
  46. }
  47. }.call(typeof window === 'undefined' ? this : window));