Skip to content

Commit

Permalink
docs: updates api refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Nov 30, 2020
1 parent a241ee9 commit 86b2ef1
Show file tree
Hide file tree
Showing 13 changed files with 1,034 additions and 843 deletions.
6 changes: 6 additions & 0 deletions docs/essentials/datetime.md
Expand Up @@ -70,6 +70,12 @@ As result the below:

## Custom Formatting

:::danger NOTE
Not supported IE, due to no support `Intl.DateTimeForamt#formatToParts` in [IE](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/formatToParts)

If you want to use it, you need to use [polyfill](https://github.com/formatjs/formatjs/tree/main/packages/intl-datetimeformat)
:::

`$d` returns resulting string with fully formatted datetime, which can only be used as a whole. In situations when you need to style some part of the formatted datetime (like fraction digits), `$d` is not enough. In such cases DatetimeFormat component (`i18n-d`) will be of help.

With a minimum set of properties, `i18n-d` generates the same output as `$d`, wrapped into configured DOM element.
Expand Down
6 changes: 6 additions & 0 deletions docs/essentials/number.md
Expand Up @@ -55,6 +55,12 @@ As result the below:

## Custom Formatting

:::danger NOTE
Not supported IE, due to no support `Intl.NumberForamt#formatToParts` in [IE](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/formatToParts)

If you want to use it, you need to use [polyfill](https://github.com/formatjs/formatjs/tree/main/packages/intl-numberformat)
:::

`$n` returns resulting string with fully formatted number, which can only be used as a whole. In situations when you need to style some part of the formatted number (like fraction digits), `$n` is not enough. In such cases NumberForamt component (`i18n-n`) will be of help.

With a minimum set of properties, `i18n-n` generates the same output as `$n`, wrapped into configured DOM element.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -39,7 +39,7 @@
"@typescript-eslint/parser": "^4.7.0",
"@vue/devtools-api": "^6.0.0-beta.2",
"@vue/server-renderer": "^3.0.0",
"api-docs-gen": "^0.2.5",
"api-docs-gen": "^0.2.6",
"brotli": "^1.3.2",
"chalk": "^4.1.0",
"convert-hrtime": "^3.0.0",
Expand Down

0 comments on commit 86b2ef1

Please sign in to comment.