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..c9e1383 100644 --- a/README.md +++ b/README.md @@ -1,9 +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. -## Install +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 @@ -29,6 +30,9 @@ console.log(days.short) * English * French +* Spanish +* Italian +* Portuguese ### Usage @@ -41,24 +45,37 @@ 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 +
-| **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) | +
+ 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 +``` -### 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 +85,33 @@ 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: +### Related projects -```sh -$ npm install && npm test -``` +### Contributors +| **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._ + +[verb-generate-readme]: https://github.com/verbose/verb-generate-readme +[verb]: https://github.com/verbose/verb + diff --git a/index.js b/index.js index 4da859f..67002ed 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']; +// Brazilian Portuguese translation +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']; + // 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']; diff --git a/package.json b/package.json index 93ef76a..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": { @@ -42,7 +43,14 @@ "tuesday", "wednesday", "week", - "weekday" + "weekday", + "segunda", + "terça", + "quarta", + "quinta", + "sexta", + "sábado", + "domingo" ], "verb": { "toc": false,