fr.js 2.4 KB

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