aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLuiz Strobelt <[email protected]>2018-10-25 00:34:12 -0300
committerLuiz Strobelt <[email protected]>2018-10-25 00:34:12 -0300
commit27f4878ab3d989cdddec9df99802fe2150730ba2 (patch)
tree3526f36568059c6ac18ea6be020c242638a8df8e /lib
parented9c560599bf1c32ddc36c2f71307c36b810c7c9 (diff)
downloadfaker-27f4878ab3d989cdddec9df99802fe2150730ba2.tar.xz
faker-27f4878ab3d989cdddec9df99802fe2150730ba2.zip
Add date to pt_BR
Diffstat (limited to 'lib')
-rw-r--r--lib/locales/pt_BR/date/index.js4
-rw-r--r--lib/locales/pt_BR/date/month.js63
-rw-r--r--lib/locales/pt_BR/date/weekday.js43
-rw-r--r--lib/locales/pt_BR/index.js1
4 files changed, 111 insertions, 0 deletions
diff --git a/lib/locales/pt_BR/date/index.js b/lib/locales/pt_BR/date/index.js
new file mode 100644
index 00000000..8c45d3f6
--- /dev/null
+++ b/lib/locales/pt_BR/date/index.js
@@ -0,0 +1,4 @@
+var date = {};
+module["exports"] = date;
+date.month = require("./month");
+date.weekday = require("./weekday");
diff --git a/lib/locales/pt_BR/date/month.js b/lib/locales/pt_BR/date/month.js
new file mode 100644
index 00000000..4a906032
--- /dev/null
+++ b/lib/locales/pt_BR/date/month.js
@@ -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"
+ ]
+};
diff --git a/lib/locales/pt_BR/date/weekday.js b/lib/locales/pt_BR/date/weekday.js
new file mode 100644
index 00000000..08422224
--- /dev/null
+++ b/lib/locales/pt_BR/date/weekday.js
@@ -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"
+ ]
+};
diff --git a/lib/locales/pt_BR/index.js b/lib/locales/pt_BR/index.js
index 6578d3c5..59966915 100644
--- a/lib/locales/pt_BR/index.js
+++ b/lib/locales/pt_BR/index.js
@@ -7,3 +7,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");