ot-localised-days

0.1.0 • Public • Published

ot-localised-days

Build Status NPM version Dependencies

Localised day-of-week abbreviations (e.g. Mon, Tue, Wed ...)

installation:

npm install ot-localised-days

usage:

var days = require('ot-localised-days');

for(var i=0; i<7; i++){
  console.log(days.getDayOfWeekLocalisedText('de', i));
}
// "So"
// "Mo"
// "Di"
// "Mi"
// "Do"
// "Fr"
// "Sa"

.getDayOfWeekLocalisedText(langauge, dayOfWeek)

  • language: language code (en|de|fr|es|ja)
  • dayOfWeek: int representing day of week, Sunday = 0 -> Friday = 6

Supported languages:

  • en
  • de
  • fr
  • es
  • ja

Running tests

npm install
npm test

Readme

Keywords

Package Sidebar

Install

npm i ot-localised-days

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • acolchado
  • arnoldzokas
  • matteofigus
  • ryantomlinson
  • andyroyle
  • stevejhiggs