Wrapper element for Intl.NumberFormat.
npm install i18n-number
import "i18n-number/i18n-number.js";
<i18n-number
lang="en"
options='{ "style": "currency", "currency": "USD" }'
>123456.78</i18n-number>
This renders as follows:
$123,456.78
npm install -g polymer-cli
# Serve at http://localhost:8080/components/i18n-number/demo/
polymer serve --npm --module-resolution=node -p 8080
- Build
polymer build
- Targets
target | browser | minify | bundled |
---|---|---|---|
build/esm-unbundled | es6,modules | no | no |
build/esm-bundled | es6,modules | yes | yes |
build/es6-bundled | es6 | yes | yes |
build/es5-bundled | es5 | yes | yes |
- Serve
# Serve at http://localhost:8080/
cd build/{esm-unbundled|esm-bundled|es6-bundled|es5-bundled}
python -m SimpleHTTPServer 8080 # or any HTTP(S) server