UNPKG

1.97 kBJavaScriptView Raw
1//! moment.js locale configuration
2//! locale : Portuguese [pt]
3//! author : Jefferson : https://github.com/jalex79
4
5import moment from '../moment';
6
7export default moment.defineLocale('pt', {
8 months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
9 '_'
10 ),
11 monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
12 weekdays:
13 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
14 '_'
15 ),
16 weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
17 weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
18 weekdaysParseExact: true,
19 longDateFormat: {
20 LT: 'HH:mm',
21 LTS: 'HH:mm:ss',
22 L: 'DD/MM/YYYY',
23 LL: 'D [de] MMMM [de] YYYY',
24 LLL: 'D [de] MMMM [de] YYYY HH:mm',
25 LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
26 },
27 calendar: {
28 sameDay: '[Hoje às] LT',
29 nextDay: '[Amanhã às] LT',
30 nextWeek: 'dddd [às] LT',
31 lastDay: '[Ontem às] LT',
32 lastWeek: function () {
33 return this.day() === 0 || this.day() === 6
34 ? '[Último] dddd [às] LT' // Saturday + Sunday
35 : '[Última] dddd [às] LT'; // Monday - Friday
36 },
37 sameElse: 'L',
38 },
39 relativeTime: {
40 future: 'em %s',
41 past: 'há %s',
42 s: 'segundos',
43 ss: '%d segundos',
44 m: 'um minuto',
45 mm: '%d minutos',
46 h: 'uma hora',
47 hh: '%d horas',
48 d: 'um dia',
49 dd: '%d dias',
50 w: 'uma semana',
51 ww: '%d semanas',
52 M: 'um mês',
53 MM: '%d meses',
54 y: 'um ano',
55 yy: '%d anos',
56 },
57 dayOfMonthOrdinalParse: /\d{1,2}º/,
58 ordinal: '%dº',
59 week: {
60 dow: 1, // Monday is the first day of the week.
61 doy: 4, // The week that contains Jan 4th is the first week of the year.
62 },
63});