LaravelTest
108 строк · 3.6 Кб
1//! moment.js locale configuration
2//! locale : Catalan [ca]
3//! author : Juan G. Hurtado : https://github.com/juanghurtado
4
5;(function (global, factory) {6typeof exports === 'object' && typeof module !== 'undefined'7&& typeof require === 'function' ? factory(require('../moment')) :8typeof define === 'function' && define.amd ? define(['../moment'], factory) :9factory(global.moment)10}(this, (function (moment) { 'use strict';11
12//! moment.js locale configuration13
14var ca = moment.defineLocale('ca', {15months: {16standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(17'_'18),19format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(20'_'21),22isFormat: /D[oD]?(\s)+MMMM/,23},24monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(25'_'26),27monthsParseExact: true,28weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(29'_'30),31weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),32weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),33weekdaysParseExact: true,34longDateFormat: {35LT: 'H:mm',36LTS: 'H:mm:ss',37L: 'DD/MM/YYYY',38LL: 'D MMMM [de] YYYY',39ll: 'D MMM YYYY',40LLL: 'D MMMM [de] YYYY [a les] H:mm',41lll: 'D MMM YYYY, H:mm',42LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',43llll: 'ddd D MMM YYYY, H:mm',44},45calendar: {46sameDay: function () {47return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';48},49nextDay: function () {50return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';51},52nextWeek: function () {53return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';54},55lastDay: function () {56return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';57},58lastWeek: function () {59return (60'[el] dddd [passat a ' +61(this.hours() !== 1 ? 'les' : 'la') +62'] LT'63);64},65sameElse: 'L',66},67relativeTime: {68future: "d'aquí %s",69past: 'fa %s',70s: 'uns segons',71ss: '%d segons',72m: 'un minut',73mm: '%d minuts',74h: 'una hora',75hh: '%d hores',76d: 'un dia',77dd: '%d dies',78M: 'un mes',79MM: '%d mesos',80y: 'un any',81yy: '%d anys',82},83dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,84ordinal: function (number, period) {85var output =86number === 187? 'r'88: number === 289? 'n'90: number === 391? 'r'92: number === 493? 't'94: 'è';95if (period === 'w' || period === 'W') {96output = 'a';97}98return number + output;99},100week: {101dow: 1, // Monday is the first day of the week.102doy: 4, // The week that contains Jan 4th is the first week of the year.103},104});105
106return ca;107
108})));109