1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
| //! moment.js locale configuration
| //! locale : Portuguese [pt]
| //! author : Jefferson : https://github.com/jalex79
|
| ;(function (global, factory) {
| typeof exports === 'object' && typeof module !== 'undefined'
| && typeof require === 'function' ? factory(require('../moment')) :
| typeof define === 'function' && define.amd ? define(['../moment'], factory) :
| factory(global.moment)
| }(this, (function (moment) { 'use strict';
|
| //! moment.js locale configuration
|
| var pt = moment.defineLocale('pt', {
| 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('_'),
| weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
| '_'
| ),
| 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',
| },
| calendar: {
| sameDay: '[Hoje às] LT',
| nextDay: '[Amanhã às] LT',
| nextWeek: 'dddd [às] LT',
| lastDay: '[Ontem às] LT',
| lastWeek: function () {
| return this.day() === 0 || this.day() === 6
| ? '[Último] dddd [às] LT' // Saturday + Sunday
| : '[Última] dddd [às] LT'; // Monday - Friday
| },
| sameElse: 'L',
| },
| 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',
| },
| dayOfMonthOrdinalParse: /\d{1,2}º/,
| 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.
| },
| });
|
| return pt;
|
| })));
|
|