Skip to content

Commit 0728fdf

Browse files
authored
Fix casing of datetimeFormats option (#266)
1 parent e00da80 commit 0728fdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/essentials/datetime.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ You can localize the datetime with your definition formats.
66
Datetime formats the below:
77

88
```js
9-
const dateTimeFormats = {
9+
const datetimeFormats = {
1010
'en-US': {
1111
short: {
1212
year: 'numeric', month: 'short', day: 'numeric'
@@ -30,11 +30,11 @@ const dateTimeFormats = {
3030

3131
As seen above, you can define named datetime format (e.g. `short`, `long`, etc), and you need to use [the options with ECMA-402 Intl.DateTimeFormat](https://tc39.es/ecma402/#datetimeformat-objects)
3232

33-
After that, when using the locale messages, you need to specify the `dateTimeFormats` option of `createI18n`:
33+
After that, when using the locale messages, you need to specify the `datetimeFormats` option of `createI18n`:
3434

3535
```js
3636
const i18n = createI18n({
37-
dateTimeFormats
37+
datetimeFormats
3838
})
3939
```
4040

@@ -94,7 +94,7 @@ The `tag` is the property to set the tag.
9494

9595
The `value` prop is a property to set the datetime able value to be formatted.
9696

97-
The `format` prop is a property to which the format defined by the `dateTimeFormats` option of `createI18n` can be set.
97+
The `format` prop is a property to which the format defined by the `datetimeFormats` option of `createI18n` can be set.
9898

9999
The `locale` prop is a property to set the locale. It’s is localized with the locale specified by this prop instead of the one specified with the `locale` option of `createI18n`.
100100

0 commit comments

Comments
 (0)