2016-02-06 04:42:48 +08:00
|
|
|
//! moment.js locale configuration
|
2020-11-11 09:34:26 +08:00
|
|
|
//! locale : Portuguese [pt]
|
|
|
|
//! author : Jefferson : https://github.com/jalex79
|
2013-06-07 16:03:09 +08:00
|
|
|
|
2016-02-06 04:42:48 +08:00
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 12:24:20 +08:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-06 04:42:48 +08:00
|
|
|
factory(global.moment)
|
2017-04-20 12:24:20 +08:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2020-11-11 09:34:26 +08:00
|
|
|
//! moment.js locale configuration
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
var pt = moment.defineLocale('pt', {
|
2020-11-11 09:34:26 +08:00
|
|
|
months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
|
|
|
|
'_'
|
|
|
|
),
|
|
|
|
monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
|
2022-04-12 01:27:24 +08:00
|
|
|
weekdays:
|
|
|
|
'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
|
|
|
|
'_'
|
|
|
|
),
|
2020-11-11 09:34:26 +08:00
|
|
|
weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
|
|
|
|
weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
|
|
|
|
weekdaysParseExact: true,
|
|
|
|
longDateFormat: {
|
|
|
|
LT: 'HH:mm',
|
|
|
|
LTS: 'HH:mm:ss',
|
|
|
|
L: 'DD/MM/YYYY',
|
|
|
|
LL: 'D [de] MMMM [de] YYYY',
|
|
|
|
LLL: 'D [de] MMMM [de] YYYY HH:mm',
|
|
|
|
LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
|
2014-08-21 02:41:50 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
calendar: {
|
2018-04-26 15:15:53 +08:00
|
|
|
sameDay: '[Hoje às] LT',
|
|
|
|
nextDay: '[Amanhã às] LT',
|
|
|
|
nextWeek: 'dddd [às] LT',
|
|
|
|
lastDay: '[Ontem às] LT',
|
|
|
|
lastWeek: function () {
|
2020-11-11 09:34:26 +08:00
|
|
|
return this.day() === 0 || this.day() === 6
|
|
|
|
? '[Último] dddd [às] LT' // Saturday + Sunday
|
|
|
|
: '[Última] dddd [às] LT'; // Monday - Friday
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
sameElse: 'L',
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
relativeTime: {
|
|
|
|
future: 'em %s',
|
|
|
|
past: 'há %s',
|
|
|
|
s: 'segundos',
|
|
|
|
ss: '%d segundos',
|
|
|
|
m: 'um minuto',
|
|
|
|
mm: '%d minutos',
|
|
|
|
h: 'uma hora',
|
|
|
|
hh: '%d horas',
|
|
|
|
d: 'um dia',
|
|
|
|
dd: '%d dias',
|
|
|
|
w: 'uma semana',
|
|
|
|
ww: '%d semanas',
|
|
|
|
M: 'um mês',
|
|
|
|
MM: '%d meses',
|
|
|
|
y: 'um ano',
|
|
|
|
yy: '%d anos',
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
2020-11-11 09:34:26 +08:00
|
|
|
ordinal: '%dº',
|
|
|
|
week: {
|
|
|
|
dow: 1, // Monday is the first day of the week.
|
|
|
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
|
|
},
|
2018-04-26 15:15:53 +08:00
|
|
|
});
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
return pt;
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2017-04-20 12:24:20 +08:00
|
|
|
})));
|