fr.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. //! moment.js locale configuration
  2. //! locale : French [fr]
  3. //! author : John Fischer : https://github.com/jfroffice
  4. ;(function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined'
  6. && typeof require === 'function' ? factory(require('../moment')) :
  7. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  8. factory(global.moment)
  9. }(this, (function (moment) { 'use strict';
  10. var fr = moment.defineLocale('fr', {
  11. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  12. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  13. monthsParseExact : true,
  14. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  15. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  16. weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'),
  17. weekdaysParseExact : true,
  18. longDateFormat : {
  19. LT : 'HH:mm',
  20. LTS : 'HH:mm:ss',
  21. L : 'DD/MM/YYYY',
  22. LL : 'D MMMM YYYY',
  23. LLL : 'D MMMM YYYY HH:mm',
  24. LLLL : 'dddd D MMMM YYYY HH:mm'
  25. },
  26. calendar : {
  27. sameDay : '[Aujourd’hui à] LT',
  28. nextDay : '[Demain à] LT',
  29. nextWeek : 'dddd [à] LT',
  30. lastDay : '[Hier à] LT',
  31. lastWeek : 'dddd [dernier à] LT',
  32. sameElse : 'L'
  33. },
  34. relativeTime : {
  35. future : 'dans %s',
  36. past : 'il y a %s',
  37. s : 'quelques secondes',
  38. ss : '%d secondes',
  39. m : 'une minute',
  40. mm : '%d minutes',
  41. h : 'une heure',
  42. hh : '%d heures',
  43. d : 'un jour',
  44. dd : '%d jours',
  45. M : 'un mois',
  46. MM : '%d mois',
  47. y : 'un an',
  48. yy : '%d ans'
  49. },
  50. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  51. ordinal : function (number, period) {
  52. switch (period) {
  53. // TODO: Return 'e' when day of month > 1. Move this case inside
  54. // block for masculine words below.
  55. // See https://github.com/moment/moment/issues/3375
  56. case 'D':
  57. return number + (number === 1 ? 'er' : '');
  58. // Words with masculine grammatical gender: mois, trimestre, jour
  59. default:
  60. case 'M':
  61. case 'Q':
  62. case 'DDD':
  63. case 'd':
  64. return number + (number === 1 ? 'er' : 'e');
  65. // Words with feminine grammatical gender: semaine
  66. case 'w':
  67. case 'W':
  68. return number + (number === 1 ? 're' : 'e');
  69. }
  70. },
  71. week : {
  72. dow : 1, // Monday is the first day of the week.
  73. doy : 4 // The week that contains Jan 4th is the first week of the year.
  74. }
  75. });
  76. return fr;
  77. })));