ot-localised-days
v0.1.0
Published
localised day-of-week abbreviations
Downloads
2
Keywords
Readme
ot-localised-days
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