Skip to content

Instantly share code, notes, and snippets.

@pedropaulodf
Created May 3, 2024 19:36
Show Gist options
  • Save pedropaulodf/30ef24887d250b6194b98a3ea2d4207d to your computer and use it in GitHub Desktop.
Save pedropaulodf/30ef24887d250b6194b98a3ea2d4207d to your computer and use it in GitHub Desktop.
LOCALE_PTBR
export const LOCALE_PTBR = {
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_Sab".split("_"),
weekdaysMin: "DO_2ª_3ª_4ª_5ª_6ª_SÁ".split("_"),
longDateFormat: {
LT: "HH:mm",
LTS: "HH:mm:ss",
L: "DD/MM/YYYY",
LL: "D MMMM YYYY",
LLL: "D MMMM YYYY LT",
LLLL: "dddd D MMMM YYYY LT",
},
calendar: {
sameDay: "[Hoje às] LT",
nextDay: "[Amanhã às] LT",
nextWeek: "dddd [às] LT",
lastDay: "[Ontem às] LT",
lastWeek: "dddd [último às] LT",
sameElse: "L",
},
relativeTime: {
future: "em %s",
past: "há %s",
s: "alguns segundos",
m: "um minuto",
mm: "%d minutos",
h: "uma hora",
hh: "%d horas",
d: "um dia",
dd: "%d dias",
M: "um mês",
MM: "%d meses",
y: "um ano",
yy: "%d anos",
},
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.
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment