/dayjs-sw

Kiswahili locale for dayjs

Primary LanguageJavaScriptMIT LicenseMIT

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