Skip to content

Commit 86dd8e8

Browse files
sougiovnvalorkin
authored andcommitted
feat(datapicker): Capitalize pt-br's locale month names (#4455)
Revert package-lock.json modifications and force new commit
1 parent fee2a45 commit 86dd8e8

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/chronos/i18n/pt-br.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { getDayOfWeek } from '../units/day-of-week';
1212

1313
export const ptBrLocale: LocaleData = {
1414
abbr: 'pt-br',
15-
months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
16-
monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
15+
months: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
16+
monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
1717
weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
1818
weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
1919
weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),

src/chronos/test/locale/pt-br.spec.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('locale: pt-br', () => {
1818
// localeModule('pt-br');
1919

2020
it('parse', function () {
21-
var _tests = 'janeiro jan_fevereiro fev_março mar_abril abr_maio mai_junho jun_julho jul_agosto ago_setembro set_outubro out_novembro nov_dezembro dez'.split('_'),
21+
var _tests = 'Janeiro Jan_Fevereiro Fev_Março Mar_Abril Abr_Maio Mai_Junho Jun_Julho Jul_Agosto Ago_Setembro Set_Outubro Out_Novembro Nov_Dezembro Dez'.split('_'),
2222
i;
2323

2424
function equalTest(input, mmm, i) {
@@ -41,9 +41,9 @@ describe('locale: pt-br', () => {
4141

4242
it('format', function () {
4343
var a = [
44-
['dddd, MMMM Do YYYY, h:mm:ss a', 'Domingo, fevereiro 14º 2010, 3:25:50 pm'],
44+
['dddd, MMMM Do YYYY, h:mm:ss a', 'Domingo, Fevereiro 14º 2010, 3:25:50 pm'],
4545
['ddd, hA', 'Dom, 3PM'],
46-
['M Mo MM MMMM MMM', '2 2º 02 fevereiro fev'],
46+
['M Mo MM MMMM MMM', '2 2º 02 Fevereiro Fev'],
4747
['YYYY YY', '2010 10'],
4848
['D Do DD', '14 14º 14'],
4949
['d do dddd ddd', '0 0º Domingo Dom'],
@@ -57,13 +57,13 @@ describe('locale: pt-br', () => {
5757
['[the] DDDo [day of the year]', 'the 45º day of the year'],
5858
['LTS', '15:25:50'],
5959
['L', '14/02/2010'],
60-
['LL', '14 de fevereiro de 2010'],
61-
['LLL', '14 de fevereiro de 2010 às 15:25'],
62-
['LLLL', 'Domingo, 14 de fevereiro de 2010 às 15:25'],
60+
['LL', '14 de Fevereiro de 2010'],
61+
['LLL', '14 de Fevereiro de 2010 às 15:25'],
62+
['LLLL', 'Domingo, 14 de Fevereiro de 2010 às 15:25'],
6363
['l', '14/2/2010'],
64-
['ll', '14 de fev de 2010'],
65-
['lll', '14 de fev de 2010 às 15:25'],
66-
['llll', 'Dom, 14 de fev de 2010 às 15:25']
64+
['ll', '14 de Fev de 2010'],
65+
['lll', '14 de Fev de 2010 às 15:25'],
66+
['llll', 'Dom, 14 de Fev de 2010 às 15:25']
6767
],
6868
b = moment(new Date(2010, 1, 14, 15, 25, 50, 125)),
6969
i;
@@ -110,7 +110,7 @@ describe('locale: pt-br', () => {
110110
});
111111

112112
it('format month', function () {
113-
var expected = 'janeiro jan_fevereiro fev_março mar_abril abr_maio mai_junho jun_julho jul_agosto ago_setembro set_outubro out_novembro nov_dezembro dez'.split('_'),
113+
var expected = 'Janeiro Jan_Fevereiro Fev_Março Mar_Abril Abr_Maio Mai_Junho Jun_Julho Jul_Agosto Ago_Setembro Set_Outubro Out_Novembro Nov_Dezembro Dez'.split('_'),
114114
i;
115115
for (i = 0; i < expected.length; i++) {
116116
assertEq(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);

0 commit comments

Comments
 (0)