Skip to content

Commit 1ac9e1e

Browse files
ptdeviamkun
authored andcommitted
fix: Update pt locale (#538)
Added some missing properties and localized formats
1 parent 8578546 commit 1ac9e1e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/locale/pt.js

+10
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@ import dayjs from 'dayjs'
33
const locale = {
44
name: 'pt',
55
weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
6+
weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sab'.split('_'),
67
months: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
8+
monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
79
ordinal: n => `${n}º`,
810
weekStart: 1,
11+
formats: {
12+
LT: 'HH:mm',
13+
LTS: 'HH:mm:ss',
14+
L: 'DD/MM/YYYY',
15+
LL: 'D [de] MMMM [de] YYYY',
16+
LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
17+
LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
18+
},
919
relativeTime: {
1020
future: 'em %s',
1121
past: 'há %s',

0 commit comments

Comments
 (0)