fr-ch.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //! moment.js locale configuration
  2. //! locale : French (Switzerland) [fr-ch]
  3. //! author : Gaspard Bucher : https://github.com/gaspard
  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 frCh = moment.defineLocale('fr-ch', {
  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|e)/,
  51. ordinal : function (number, period) {
  52. switch (period) {
  53. // Words with masculine grammatical gender: mois, trimestre, jour
  54. default:
  55. case 'M':
  56. case 'Q':
  57. case 'D':
  58. case 'DDD':
  59. case 'd':
  60. return number + (number === 1 ? 'er' : 'e');
  61. // Words with feminine grammatical gender: semaine
  62. case 'w':
  63. case 'W':
  64. return number + (number === 1 ? 're' : 'e');
  65. }
  66. },
  67. week : {
  68. dow : 1, // Monday is the first day of the week.
  69. doy : 4 // The week that contains Jan 4th is the first week of the year.
  70. }
  71. });
  72. return frCh;
  73. })));