fr-ch.js 2.8 KB

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