Skip to content

Commit

Permalink
Merge pull request #719 from strobelt/master
Browse files Browse the repository at this point in the history
Add date to pt_BR
  • Loading branch information
Marak authored Aug 26, 2020
2 parents 35ce6d4 + 27f4878 commit 4cf9665
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/locales/pt_BR/date/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var date = {};
module["exports"] = date;
date.month = require("./month");
date.weekday = require("./weekday");
63 changes: 63 additions & 0 deletions lib/locales/pt_BR/date/month.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1799
module["exports"] = {
wide: [
"Janeiro",
"Fevereiro",
"Março",
"Abril",
"Maio",
"Junho",
"Julho",
"Agosto",
"Setembro",
"Outubro",
"Novembro",
"Dezembro"
],
// Property "wide_context" is optional, if not set then "wide" will be used instead
// It is used to specify a word in context, which may differ from a stand-alone word
wide_context: [
"Janeiro",
"Fevereiro",
"Março",
"Abril",
"Maio",
"Junho",
"Julho",
"Agosto",
"Setembro",
"Outubro",
"Novembro",
"Dezembro"
],
abbr: [
"Jan",
"Fev",
"Mar",
"Abr",
"Mai",
"Jun",
"Jul",
"Ago",
"Set",
"Out",
"Nov",
"Dez"
],
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
// It is used to specify a word in context, which may differ from a stand-alone word
abbr_context: [
"Jan",
"Fev",
"Mar",
"Abr",
"Mai",
"Jun",
"Jul",
"Ago",
"Set",
"Out",
"Nov",
"Dez"
]
};
43 changes: 43 additions & 0 deletions lib/locales/pt_BR/date/weekday.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1847
module["exports"] = {
wide: [
"Domingo",
"Segunda",
"Terça",
"Quarta",
"Quinta",
"Sexta",
"Sábado"
],
// Property "wide_context" is optional, if not set then "wide" will be used instead
// It is used to specify a word in context, which may differ from a stand-alone word
wide_context: [
"Domingo",
"Segunda",
"Terça",
"Quarta",
"Quinta",
"Sexta",
"Sábado"
],
abbr: [
"Dom",
"Seg",
"Ter",
"Qua",
"Qui",
"Sex",
"Sáb"
],
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
// It is used to specify a word in context, which may differ from a stand-alone word
abbr_context: [
"Dom",
"Seg",
"Ter",
"Qua",
"Qui",
"Sex",
"Sáb"
]
};
1 change: 1 addition & 0 deletions lib/locales/pt_BR/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ pt_BR.internet = require("./internet");
pt_BR.lorem = require("./lorem");
pt_BR.name = require("./name");
pt_BR.phone_number = require("./phone_number");
pt_BR.date = require("./date");

0 comments on commit 4cf9665

Please sign in to comment.