aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarak <[email protected]>2020-08-25 22:20:19 -0500
committerGitHub <[email protected]>2020-08-25 22:20:19 -0500
commit4cf9665a6293f4db38879cb43675fe7be6b09273 (patch)
tree8e651db41453fdf27d793799a52ec8707f53968b /lib
parent35ce6d45453a9bfb5357b16fec6b4eb8cd1013ef (diff)
parent27f4878ab3d989cdddec9df99802fe2150730ba2 (diff)
downloadfaker-4cf9665a6293f4db38879cb43675fe7be6b09273.tar.xz
faker-4cf9665a6293f4db38879cb43675fe7be6b09273.zip
Merge pull request #719 from strobelt/master
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 d79a7f81..e46984d8 100644
--- a/lib/locales/pt_BR/index.js
+++ b/lib/locales/pt_BR/index.js
@@ -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");