From af969e5c5c749496f6c04533aaea640da40c6952 Mon Sep 17 00:00:00 2001 From: Wesley Matos Date: Sat, 29 Oct 2022 07:49:37 -0300 Subject: [PATCH 1/7] feat: add portuguese translation --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 4da859f..e0ed917 100644 --- a/index.js +++ b/index.js @@ -25,6 +25,11 @@ module.exports.it = ['Domenica', 'Lunedi', 'Martedi', 'Mercoledi', 'Giovedi', 'V module.exports.it.abbr = ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab']; module.exports.it.short = ['D', 'L', 'Ma', 'Me', 'G', 'V', 'S']; +// Portuguese translation +module.exports.pt = ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado']; +module.exports.pt.abbr = ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb']; +module.exports.pt.abbr = ['Do', 'Seg', 'Te', 'Qua', 'Qui', 'Sex', 'Sá']; + // In order not to break compatibility module.exports = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; module.exports.abbr = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; From 3a0d33df197ef87d32fe06511dadb46f8a2e22b3 Mon Sep 17 00:00:00 2001 From: Wesley Matos Date: Sat, 29 Oct 2022 07:49:52 -0300 Subject: [PATCH 2/7] chore: add keywords --- package.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 93ef76a..527be4a 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,14 @@ "tuesday", "wednesday", "week", - "weekday" + "weekday", + "segunda", + "terça", + "quarta", + "quinta", + "sexta", + "sábado", + "domingo" ], "verb": { "toc": false, From 59b8e59d58b1cf7e7c954fd79f17a8ac656f580f Mon Sep 17 00:00:00 2001 From: Wesley Matos Date: Sat, 29 Oct 2022 07:50:32 -0300 Subject: [PATCH 3/7] docs: update verb and generate new README --- .verb.md | 11 ++++++++++ README.md | 60 ++++++++++++++++++++++++++++++++++++++----------------- 2 files changed, 53 insertions(+), 18 deletions(-) diff --git a/.verb.md b/.verb.md index b5f7e59..9d9ad4d 100644 --- a/.verb.md +++ b/.verb.md @@ -17,6 +17,9 @@ console.log(days.short) * English * French +* Spanish +* Italian +* Portuguese ### Usage @@ -30,4 +33,12 @@ console.log(days.en); console.log(days.fr); //=> ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'] +console.log(days.es); +//=> ['domingo', 'lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado'] + +console.log(days.it); +//=> ['Domenica', 'Lunedi', 'Martedi', 'Mercoledi', 'Giovedi', 'Venerdi', 'Sabato'] + +console.log(days.pt); +//=> ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'] ``` diff --git a/README.md b/README.md index d2c0edc..2f7f59a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ > Days of the week. +Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. + ## Install Install with [npm](https://www.npmjs.com/): @@ -29,6 +31,9 @@ console.log(days.short) * English * French +* Spanish +* Italian +* Portuguese ### Usage @@ -41,24 +46,38 @@ console.log(days.en); console.log(days.fr); //=> ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'] +console.log(days.es); +//=> ['domingo', 'lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado'] + +console.log(days.it); +//=> ['Domenica', 'Lunedi', 'Martedi', 'Mercoledi', 'Giovedi', 'Venerdi', 'Sabato'] + +console.log(days.pt); +//=> ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'] ``` ## About -### Contributing +
+Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). -### Contributors +
+ +
+Running Tests + +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: + +```sh +$ npm install && npm test +``` -| **Commits** | **Contributor** | -| --- | --- | -| 16 | [jonschlinkert](https://github.com/jonschlinkert) | -| 4 | [danielsalgadop](https://github.com/danielsalgadop) | -| 2 | [Rawnly](https://github.com/Rawnly) | -| 2 | [Sebastien-Meiffren](https://github.com/Sebastien-Meiffren) | +
-### Building docs +
+Building docs _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ @@ -68,26 +87,31 @@ To generate the readme, run the following command: $ npm install -g verbose/verb#dev verb-generate-readme && verb ``` -### Running tests +
-Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: +### Contributors -```sh -$ npm install && npm test -``` +| **Commits** | **Contributor** | +| --- | --- | +| 19 | [jonschlinkert](https://github.com/jonschlinkert) | +| 4 | [danielsalgadop](https://github.com/danielsalgadop) | +| 3 | [IonicaBizau](https://github.com/IonicaBizau) | +| 2 | [Rawnly](https://github.com/Rawnly) | +| 2 | [Sebastien-Meiffren](https://github.com/Sebastien-Meiffren) | ### Author **Jon Schlinkert** -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](https://twitter.com/jonschlinkert) +* [GitHub Profile](https://github.com/jonschlinkert) +* [Twitter Profile](https://twitter.com/jonschlinkert) +* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) ### License -Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert). +Copyright © 2022, [Jon Schlinkert](https://github.com/jonschlinkert). Released under the [MIT License](LICENSE). *** -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 30, 2017._ \ No newline at end of file +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on October 29, 2022._ \ No newline at end of file From 2d5d90626457d287ba183ef404af7adc8a7f1373 Mon Sep 17 00:00:00 2001 From: Wesley Matos Date: Sat, 29 Oct 2022 08:05:31 -0300 Subject: [PATCH 4/7] refactor: update from "portuguese" to "brazilian portuguese" --- .verb.md | 4 ++-- index.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.verb.md b/.verb.md index 9d9ad4d..61c34e6 100644 --- a/.verb.md +++ b/.verb.md @@ -19,7 +19,7 @@ console.log(days.short) * French * Spanish * Italian -* Portuguese +* Brazilian Portuguese ### Usage @@ -39,6 +39,6 @@ console.log(days.es); console.log(days.it); //=> ['Domenica', 'Lunedi', 'Martedi', 'Mercoledi', 'Giovedi', 'Venerdi', 'Sabato'] -console.log(days.pt); +console.log(days.ptBr); //=> ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'] ``` diff --git a/index.js b/index.js index e0ed917..0d7ae72 100644 --- a/index.js +++ b/index.js @@ -25,10 +25,10 @@ module.exports.it = ['Domenica', 'Lunedi', 'Martedi', 'Mercoledi', 'Giovedi', 'V module.exports.it.abbr = ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab']; module.exports.it.short = ['D', 'L', 'Ma', 'Me', 'G', 'V', 'S']; -// Portuguese translation -module.exports.pt = ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado']; -module.exports.pt.abbr = ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb']; -module.exports.pt.abbr = ['Do', 'Seg', 'Te', 'Qua', 'Qui', 'Sex', 'Sá']; +// Brazilian Portuguese translation +module.exports.ptBr = ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado']; +module.exports.ptBr.abbr = ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb']; +module.exports.ptBr.abbr = ['Do', 'Seg', 'Te', 'Qua', 'Qui', 'Sex', 'Sá']; // In order not to break compatibility module.exports = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; From 96bd17b1ab4996aa72abe54a07ad2fcb5e5a27d4 Mon Sep 17 00:00:00 2001 From: Wesley Matos Date: Sat, 29 Oct 2022 08:08:24 -0300 Subject: [PATCH 5/7] feat: put the real way that we uses the weekdays --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0d7ae72..67002ed 100644 --- a/index.js +++ b/index.js @@ -26,9 +26,9 @@ module.exports.it.abbr = ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab']; module.exports.it.short = ['D', 'L', 'Ma', 'Me', 'G', 'V', 'S']; // Brazilian Portuguese translation -module.exports.ptBr = ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado']; +module.exports.ptBr = ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado']; +module.exports.ptBr.abbr = ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado']; module.exports.ptBr.abbr = ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb']; -module.exports.ptBr.abbr = ['Do', 'Seg', 'Te', 'Qua', 'Qui', 'Sex', 'Sá']; // In order not to break compatibility module.exports = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; From 76adaddfdbfe282f5b735aee73c51e149dc8bcae Mon Sep 17 00:00:00 2001 From: Wesley Matos Date: Sat, 29 Oct 2022 10:32:39 -0300 Subject: [PATCH 6/7] docs: update to portuguese --- .verb.md | 4 ++-- README.md | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.verb.md b/.verb.md index 61c34e6..9d9ad4d 100644 --- a/.verb.md +++ b/.verb.md @@ -19,7 +19,7 @@ console.log(days.short) * French * Spanish * Italian -* Brazilian Portuguese +* Portuguese ### Usage @@ -39,6 +39,6 @@ console.log(days.es); console.log(days.it); //=> ['Domenica', 'Lunedi', 'Martedi', 'Mercoledi', 'Giovedi', 'Venerdi', 'Sabato'] -console.log(days.ptBr); +console.log(days.pt); //=> ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'] ``` diff --git a/README.md b/README.md index 2f7f59a..c9e1383 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ -# days [![NPM version](https://img.shields.io/npm/v/days.svg?style=flat)](https://www.npmjs.com/package/days) [![NPM monthly downloads](https://img.shields.io/npm/dm/days.svg?style=flat)](https://npmjs.org/package/days) [![NPM total downloads](https://img.shields.io/npm/dt/days.svg?style=flat)](https://npmjs.org/package/days) +# days [![NPM version](https://img.shields.io/npm/v/days.svg?style=flat)](https://www.npmjs.com/package/days) [![NPM monthly downloads](https://img.shields.io/npm/dm/days.svg?style=flat)](https://npmjs.org/package/days) [![NPM total downloads](https://img.shields.io/npm/dt/days.svg?style=flat)](https://npmjs.org/package/days) > Days of the week. Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. ## Install - Install with [npm](https://www.npmjs.com/): ```sh @@ -57,16 +56,15 @@ console.log(days.pt); ``` ## About -
-Contributing + Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
-Running Tests + Running Tests Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: @@ -77,7 +75,7 @@ $ npm install && npm test
-Building docs + Building docs _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ @@ -89,8 +87,9 @@ $ npm install -g verbose/verb#dev verb-generate-readme && verb
-### Contributors +### Related projects +### Contributors | **Commits** | **Contributor** | | --- | --- | | 19 | [jonschlinkert](https://github.com/jonschlinkert) | @@ -100,18 +99,19 @@ $ npm install -g verbose/verb#dev verb-generate-readme && verb | 2 | [Sebastien-Meiffren](https://github.com/Sebastien-Meiffren) | ### Author - **Jon Schlinkert** - -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) ++ [GitHub Profile](https://github.com/jonschlinkert) ++ [Twitter Profile](https://twitter.com/jonschlinkert) ++ [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) ### License - Copyright © 2022, [Jon Schlinkert](https://github.com/jonschlinkert). Released under the [MIT License](LICENSE). *** -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on October 29, 2022._ \ No newline at end of file +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on October 29, 2022._ + +[verb-generate-readme]: https://github.com/verbose/verb-generate-readme +[verb]: https://github.com/verbose/verb + From 68d636e403e3fa4aed2c7e4bb33e46414000f099 Mon Sep 17 00:00:00 2001 From: Wesley Matos Date: Sat, 29 Oct 2022 10:32:51 -0300 Subject: [PATCH 7/7] chore: add myself as contributor --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 527be4a..10148a2 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "Daniel Salgado Población (http://danielsalgado.com/wordpress35)", "Federico Vitale (https://rawnly.com)", "Jon Schlinkert (http://twitter.com/jonschlinkert)", - "Sebastien MEIFFREN (http://www.commande-online.fr)" + "Sebastien MEIFFREN (http://www.commande-online.fr)", + "Wesley Matos (https://linkedin.com/in/ologbonowiwi)" ], "repository": "jonschlinkert/days", "bugs": {