0.0.27 • Published 1 month ago
be-intl v0.0.27
be-intl
Format numbers, dates automatically and semantically.
<data value=123456.789 lang="de-DE" be-intl='{ "style": "currency", "currency": "EUR" }'></data>
emits
<data value=123456.789 lang="de-DE" be-intl='{ "style": "currency", "currency": "EUR" }'>123.456,79 €</data>
The output element provides identical support.
<time lang="ar-EG" datetime=2011-11-18T14:54:39.929Z be-intl='{ "weekday": "long", "year": "numeric", "month": "long", "day": "numeric" }'></time>
emits
<time lang="ar-EG" datetime="2011-11-18T14:54:39.929Z" be-intl="{ "weekday": "long", "year": "numeric", "month": "long", "day": "numeric" }">الجمعة، ١٨ نوفمبر ٢٠١١</time>
TODO Support expanding out the attribute to avoid use of JSON
Viewing Locally
Any web server than can serve static files will do, but...
- Install git.
- Fork/clone this repo.
- Install node.
- Open command window to folder where you cloned this repo.
npm install
npm run serve
- Open http://localhost:3030/demo in a modern browser.
Importing in ES Modules:
import 'be-intl/be-intl.js';
Using from CDN:
<script type=module crossorigin=anonymous>
import 'https://esm.run/be-intl';
</script>
0.0.26
1 month ago
0.0.27
1 month ago
0.0.25
1 month ago
0.0.24
1 month ago
0.0.23
2 months ago
0.0.22
4 months ago
0.0.20
4 months ago
0.0.21
4 months ago
0.0.12
10 months ago
0.0.13
9 months ago
0.0.14
9 months ago
0.0.15
9 months ago
0.0.16
8 months ago
0.0.17
8 months ago
0.0.18
5 months ago
0.0.19
5 months ago
0.0.10
10 months ago
0.0.11
10 months ago
0.0.9
10 months ago
0.0.8
11 months ago
0.0.5
11 months ago
0.0.4
11 months ago
0.0.7
11 months ago
0.0.6
11 months ago
0.0.3
11 months ago
0.0.2
11 months ago
0.0.1
11 months ago
0.0.0
11 months ago