Skip to content

wmik/dayjs-sw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dayjs-sw

Travis (.com) codecov coverage npm semantic-release Greenkeeper badge

Installation

$ npm install dayjs-sw

Usage

const dayjs = require("dayjs");
const  swLocale = require("dayjs-sw");

dayjs.locale(swLocale);

dayjs("2018-07-16").format("MMMM") // "Julai" (July)
dayjs("2020").from("2018"), // "miaka 2 ijayo" (literal translation 2 years to come / later)

License

MIT © wmik