fr-ch.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //! moment.js locale configuration
  2. //! locale : French (Switzerland) [fr-ch]
  3. //! author : Gaspard Bucher : https://github.com/gaspard
  4. import moment from '../moment';
  5. export default moment.defineLocale('fr-ch', {
  6. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  7. '_'
  8. ),
  9. monthsShort:
  10. 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  11. '_'
  12. ),
  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. });