fr-FR.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*!
  2. * numbro.js language configuration
  3. * language : French
  4. * locale: France
  5. * author : Adam Draper : https://github.com/adamwdraper
  6. */
  7. (function () {
  8. 'use strict';
  9. var language = {
  10. langLocaleCode: 'fr-FR',
  11. cultureCode: 'fr-FR',
  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 (number) {
  23. return number === 1 ? 'er' : 'ème';
  24. },
  25. currency: {
  26. symbol: '€',
  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));