node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

ot-localised-days

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