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) :
10
}(this, (function (moment) { 'use strict';
14
function relativeTimeWithMutation(number, withoutSuffix, key) {
20
return number + ' ' + mutation(format[key], number);
22
function specialMutationForYears(number) {
23
switch (lastNumber(number)) {
29
return number + ' bloaz';
31
return number + ' vloaz';
34
function lastNumber(number) {
36
return lastNumber(number % 10);
40
function mutation(text, number) {
42
return softMutation(text);
46
function softMutation(text) {
52
if (mutationTable[text.charAt(0)] === undefined) {
55
return mutationTable[text.charAt(0)] + text.substring(1);
72
monthsRegex = /^(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,
73
monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
74
monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
84
shortWeekdaysParse = [
103
var br = moment.defineLocale('br', {
104
months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
107
monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
108
weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
109
weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
110
weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
111
weekdaysParse: minWeekdaysParse,
112
fullWeekdaysParse: fullWeekdaysParse,
113
shortWeekdaysParse: shortWeekdaysParse,
114
minWeekdaysParse: minWeekdaysParse,
116
monthsRegex: monthsRegex,
117
monthsShortRegex: monthsRegex,
118
monthsStrictRegex: monthsStrictRegex,
119
monthsShortStrictRegex: monthsShortStrictRegex,
120
monthsParse: monthsParse,
121
longMonthsParse: monthsParse,
122
shortMonthsParse: monthsParse,
128
LL: 'D [a viz] MMMM YYYY',
129
LLL: 'D [a viz] MMMM YYYY HH:mm',
130
LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
133
sameDay: '[Hiziv da] LT',
134
nextDay: '[Warcʼhoazh da] LT',
135
nextWeek: 'dddd [da] LT',
136
lastDay: '[Decʼh da] LT',
137
lastWeek: 'dddd [paset da] LT',
143
s: 'un nebeud segondennoù',
146
mm: relativeTimeWithMutation,
150
dd: relativeTimeWithMutation,
152
MM: relativeTimeWithMutation,
154
yy: specialMutationForYears,
156
dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
157
ordinal: function (number) {
158
var output = number === 1 ? 'añ' : 'vet';
159
return number + output;
165
meridiemParse: /a.m.|g.m./,
166
isPM: function (token) {
167
return token === 'g.m.';
169
meridiem: function (hour, minute, isLower) {
170
return hour < 12 ? 'a.m.' : 'g.m.';