Skip to content

Commit

Permalink
Version 0.2.0 with Intl.js Polyfill dynamic loading
Browse files Browse the repository at this point in the history
  • Loading branch information
t2ym committed Feb 17, 2016
1 parent e8a25ae commit 8883f78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "i18n-number",
"version": "0.1.4",
"version": "0.2.0",
"authors": [
"Tetsuya Mori <t2y3141592@gmail.com>"
],
Expand Down
6 changes: 5 additions & 1 deletion i18n-number.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<!--
`<i18n-number>` renders a number in international formats by Intl.NumberFormat
(http://www.ecma-international.org/ecma-402/1.0/#sec-11.1) object.
If Intl.NumberFormat is unavailable, Number.toLocaleString() is used as a fallback.
If Intl.NumberFormat is unavailable, [Intl.js Polyfill](https://github.com/andyearnshaw/Intl.js) and
its locale modules are dynamically loaded as a fallback.
<i18n-number lang="en"
options='{ "style": "currency", "currency": "USD" }'
Expand Down Expand Up @@ -207,6 +208,9 @@

/**
* Formatted string rendered for UI
*
* Note:
* - While Intl.js Polyfill locale module is being loaded, the value is set as `undefined` until load completion.
*/
formatted: {
type: String,
Expand Down

0 comments on commit 8883f78

Please sign in to comment.