[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/js/vendor/moment-js/locale/ -> ca.js (source)

   1  //! moment.js locale configuration
   2  //! locale : Catalan [ca]
   3  //! author : Juan G. Hurtado : https://github.com/juanghurtado
   4  
   5  ;(function (global, factory) {
   6     typeof exports === 'object' && typeof module !== 'undefined'
   7         && typeof require === 'function' ? factory(require('../moment')) :
   8     typeof define === 'function' && define.amd ? define(['../moment'], factory) :
   9     factory(global.moment)
  10  }(this, function (moment) { 'use strict';
  11  
  12  
  13      var ca = moment.defineLocale('ca', {
  14          months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  15          monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),
  16          monthsParseExact : true,
  17          weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  18          weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  19          weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
  20          weekdaysParseExact : true,
  21          longDateFormat : {
  22              LT : 'H:mm',
  23              LTS : 'H:mm:ss',
  24              L : 'DD/MM/YYYY',
  25              LL : 'D MMMM YYYY',
  26              LLL : 'D MMMM YYYY H:mm',
  27              LLLL : 'dddd D MMMM YYYY H:mm'
  28          },
  29          calendar : {
  30              sameDay : function () {
  31                  return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  32              },
  33              nextDay : function () {
  34                  return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  35              },
  36              nextWeek : function () {
  37                  return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  38              },
  39              lastDay : function () {
  40                  return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  41              },
  42              lastWeek : function () {
  43                  return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  44              },
  45              sameElse : 'L'
  46          },
  47          relativeTime : {
  48              future : 'en %s',
  49              past : 'fa %s',
  50              s : 'uns segons',
  51              m : 'un minut',
  52              mm : '%d minuts',
  53              h : 'una hora',
  54              hh : '%d hores',
  55              d : 'un dia',
  56              dd : '%d dies',
  57              M : 'un mes',
  58              MM : '%d mesos',
  59              y : 'un any',
  60              yy : '%d anys'
  61          },
  62          ordinalParse: /\d{1,2}(r|n|t|è|a)/,
  63          ordinal : function (number, period) {
  64              var output = (number === 1) ? 'r' :
  65                  (number === 2) ? 'n' :
  66                  (number === 3) ? 'r' :
  67                  (number === 4) ? 't' : 'è';
  68              if (period === 'w' || period === 'W') {
  69                  output = 'a';
  70              }
  71              return number + output;
  72          },
  73          week : {
  74              dow : 1, // Monday is the first day of the week.
  75              doy : 4  // The week that contains Jan 4th is the first week of the year.
  76          }
  77      });
  78  
  79      return ca;
  80  
  81  }));


Generated: Thu Aug 24 01:01:27 2023 Cross-referenced by PHPXref 0.7.1