forked from moment/moment
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request moment#358 from caio-ribeiro-pereira/develop
Re-send Brazilian i18n
- Loading branch information
Showing
4 changed files
with
300 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
(function () { | ||
var lang = { | ||
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("_"), | ||
longDateFormat : { | ||
LT : "HH:mm", | ||
L : "DD/MM/YYYY", | ||
LL : "D \\de MMMM \\de YYYY", | ||
LLL : "D \\de MMMM \\de YYYY LT", | ||
LLLL : "dddd, D \\de MMMM \\de YYYY LT" | ||
}, | ||
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 : "%s atrás", | ||
s : "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" | ||
}, | ||
ordinal : function (number) { | ||
return 'º'; | ||
} | ||
}; | ||
|
||
// Node | ||
if (typeof module !== 'undefined') { | ||
module.exports = lang; | ||
} | ||
// Browser | ||
if (typeof window !== 'undefined' && this.moment && this.moment.lang) { | ||
this.moment.lang('pt-br', lang); | ||
} | ||
}()); |
Oops, something went wrong.