nb-NO.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*!
  2. * numbro.js language configuration
  3. * language: Norwegian Bokmål
  4. * locale: Norway
  5. * author : Benjamin Van Ryseghem
  6. */
  7. (function() {
  8. 'use strict';
  9. var language = {
  10. langLocaleCode: 'nb-NO',
  11. cultureCode: 'nb-NO',
  12. delimiters: {
  13. thousands: ' ',
  14. decimal: ','
  15. },
  16. abbreviations: {
  17. thousand: 't',
  18. million: 'M',
  19. billion: 'md',
  20. trillion: 't'
  21. },
  22. currency: {
  23. symbol: 'kr',
  24. position: 'postfix'
  25. },
  26. defaults: {
  27. currencyFormat: ',4 a'
  28. },
  29. formats: {
  30. fourDigits: '4 a',
  31. fullWithTwoDecimals: ',0.00 $',
  32. fullWithTwoDecimalsNoCurrency: ',0.00',
  33. fullWithNoDecimals: ',0 $'
  34. }
  35. };
  36. // CommonJS
  37. if (typeof module !== 'undefined' && module.exports) {
  38. module.exports = language;
  39. }
  40. // Browser
  41. if (typeof window !== 'undefined' && window.numbro && window.numbro.culture) {
  42. window.numbro.culture(language.cultureCode, language);
  43. }
  44. }.call(typeof window === 'undefined' ? this : window));