1 // moment.js locale configuration
2 // locale : breton (br)
3 // author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
6 // Comment out broken wrapper, see T145382
7 /*if (typeof define === 'function' && define.amd) {
8 define(['moment'], factory); // AMD
9 } else if (typeof exports === 'object') {
10 module.exports = factory(require('../moment')); // Node
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
16 function relativeTimeWithMutation(number, withoutSuffix, key) {
22 return number + ' ' + mutation(format[key], number);
25 function specialMutationForYears(number) {
26 switch (lastNumber(number)) {
32 return number + ' bloaz';
34 return number + ' vloaz';
38 function lastNumber(number) {
40 return lastNumber(number % 10);
45 function mutation(text, number) {
47 return softMutation(text);
52 function softMutation(text) {
58 if (mutationTable[text.charAt(0)] === undefined) {
61 return mutationTable[text.charAt(0)] + text.substring(1);
64 return moment.defineLocale('br', {
65 months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
66 monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
67 weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
68 weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
69 weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
74 LL : 'D [a viz] MMMM YYYY',
75 LLL : 'D [a viz] MMMM YYYY LT',
76 LLLL : 'dddd, D [a viz] MMMM YYYY LT'
79 sameDay : '[Hiziv da] LT',
80 nextDay : '[Warc\'hoazh da] LT',
81 nextWeek : 'dddd [da] LT',
82 lastDay : '[Dec\'h da] LT',
83 lastWeek : 'dddd [paset da] LT',
89 s : 'un nebeud segondennoù',
91 mm : relativeTimeWithMutation,
95 dd : relativeTimeWithMutation,
97 MM : relativeTimeWithMutation,
99 yy : specialMutationForYears
101 ordinalParse: /\d{1,2}(añ|vet)/,
102 ordinal : function (number) {
103 var output = (number === 1) ? 'añ' : 'vet';
104 return number + output;
107 dow : 1, // Monday is the first day of the week.
108 doy : 4 // The week that contains Jan 4th is the first week of the year.