LaravelTest
176 строк · 5.4 Кб
1//! moment.js locale configuration
2//! locale : Breton [br]
3//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
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
14function relativeTimeWithMutation(number, withoutSuffix, key) {15var format = {16mm: 'munutenn',17MM: 'miz',18dd: 'devezh',19};20return number + ' ' + mutation(format[key], number);21}22function specialMutationForYears(number) {23switch (lastNumber(number)) {24case 1:25case 3:26case 4:27case 5:28case 9:29return number + ' bloaz';30default:31return number + ' vloaz';32}33}34function lastNumber(number) {35if (number > 9) {36return lastNumber(number % 10);37}38return number;39}40function mutation(text, number) {41if (number === 2) {42return softMutation(text);43}44return text;45}46function softMutation(text) {47var mutationTable = {48m: 'v',49b: 'v',50d: 'z',51};52if (mutationTable[text.charAt(0)] === undefined) {53return text;54}55return mutationTable[text.charAt(0)] + text.substring(1);56}57
58var monthsParse = [59/^gen/i,60/^c[ʼ\']hwe/i,61/^meu/i,62/^ebr/i,63/^mae/i,64/^(mez|eve)/i,65/^gou/i,66/^eos/i,67/^gwe/i,68/^her/i,69/^du/i,70/^ker/i,71],72monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,73monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,74monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,75fullWeekdaysParse = [76/^sul/i,77/^lun/i,78/^meurzh/i,79/^merc[ʼ\']her/i,80/^yaou/i,81/^gwener/i,82/^sadorn/i,83],84shortWeekdaysParse = [85/^Sul/i,86/^Lun/i,87/^Meu/i,88/^Mer/i,89/^Yao/i,90/^Gwe/i,91/^Sad/i,92],93minWeekdaysParse = [94/^Su/i,95/^Lu/i,96/^Me([^r]|$)/i,97/^Mer/i,98/^Ya/i,99/^Gw/i,100/^Sa/i,101];102
103var br = moment.defineLocale('br', {104months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(105'_'106),107monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),108weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),109weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),110weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),111weekdaysParse: minWeekdaysParse,112fullWeekdaysParse: fullWeekdaysParse,113shortWeekdaysParse: shortWeekdaysParse,114minWeekdaysParse: minWeekdaysParse,115
116monthsRegex: monthsRegex,117monthsShortRegex: monthsRegex,118monthsStrictRegex: monthsStrictRegex,119monthsShortStrictRegex: monthsShortStrictRegex,120monthsParse: monthsParse,121longMonthsParse: monthsParse,122shortMonthsParse: monthsParse,123
124longDateFormat: {125LT: 'HH:mm',126LTS: 'HH:mm:ss',127L: 'DD/MM/YYYY',128LL: 'D [a viz] MMMM YYYY',129LLL: 'D [a viz] MMMM YYYY HH:mm',130LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',131},132calendar: {133sameDay: '[Hiziv da] LT',134nextDay: '[Warcʼhoazh da] LT',135nextWeek: 'dddd [da] LT',136lastDay: '[Decʼh da] LT',137lastWeek: 'dddd [paset da] LT',138sameElse: 'L',139},140relativeTime: {141future: 'a-benn %s',142past: '%s ʼzo',143s: 'un nebeud segondennoù',144ss: '%d eilenn',145m: 'ur vunutenn',146mm: relativeTimeWithMutation,147h: 'un eur',148hh: '%d eur',149d: 'un devezh',150dd: relativeTimeWithMutation,151M: 'ur miz',152MM: relativeTimeWithMutation,153y: 'ur bloaz',154yy: specialMutationForYears,155},156dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,157ordinal: function (number) {158var output = number === 1 ? 'añ' : 'vet';159return number + output;160},161week: {162dow: 1, // Monday is the first day of the week.163doy: 4, // The week that contains Jan 4th is the first week of the year.164},165meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn166isPM: function (token) {167return token === 'g.m.';168},169meridiem: function (hour, minute, isLower) {170return hour < 12 ? 'a.m.' : 'g.m.';171},172});173
174return br;175
176})));177