cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

fr-ch.js (2263B)


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