# @dipser/wmlang.js

> Translate months and weekdays with Intl.

Latest version **1.0.1** (published 2020-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dipser/wmlang.js
pnpm add @dipser/wmlang.js
yarn add @dipser/wmlang.js
bun add @dipser/wmlang.js
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-09-30 |
| First published | 2020-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | dipser |
| Maintainers | dipser |
| Keywords | javascript, wmlang.js, intl, date, month, weekday, l10n, i18n |

## Links

- npm: https://www.npmjs.com/package/@dipser/wmlang.js
- Repository: https://github.com/Bitfertig/wmlang.js
- Homepage: https://github.com/Bitfertig/wmlang.js#readme
- Issues: https://github.com/Bitfertig/wmlang.js/issues
- npm.io page: https://npm.io/package/@dipser/wmlang.js

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-09-30
- 1.0.0 — 2020-09-22
- 0.4.0 — 2020-09-22

## README

# wmlang.js

## Demo

http://tools.bitfertig.de/wmlang.js/


## Install

```bash
npm i @dipser/wmlang.js
```


## Usage

```html
<script type="module">
import { month, weekday } from '@dipser/wmlang.js';
console.log( weekday(1, 'de') ); // => Montag
console.log( month(1, 'de') ); // => Januar
</script>
```


## How it works

```javascript
function month(month, locale = 'en') {
    let intl = new Intl.DateTimeFormat(locale, { month: 'long' });
    return intl.format( new Date(1970, Number(month) - 1, 1) );
}
month(2, 'de'); // => Februar
```


## More
* [npm package](https://www.npmjs.com/package/@dipser/wmlang.js)
* [twitter](https://twitter.com/dipser)

---
_Source: https://npm.io/package/@dipser/wmlang.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
