Skip to content

Commit 8e15c6a

Browse files
authored
Merge pull request #264 from deining/fix-typos
2 parents 37308fe + 56238aa commit 8e15c6a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
- name: Use Node.js 18.x
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v3
1616
with:
1717
node-version: 18.x
1818
- name: npm install, build, and test

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ So, a relative date phrase is used for up to a month and then the actual date is
6565
| Property Name | Attribute Name | Possible Values | Default Value |
6666
|:---------------|:-----------------|:--------------------------------------------------------------------------------------------|:---------------------------------|
6767
| `datetime` | `datetime` | `string` | - |
68-
| `format` | `format` | `'datetime'\|'relative'\|'duration'` | `'auto'` |
68+
| `format` | `format` | `'datetime'\|'relative'\|'duration'` | `'auto'` |
6969
| `date` | - | `Date \| null` | - |
7070
| `tense` | `tense` | `'auto'\|'past'\|'future'` | `'auto'` |
7171
| `precision` | `precision` | `'year'\|'month'\|'day'\|'hour'\|'minute'\|'second'` | `'second'` |
@@ -83,7 +83,7 @@ So, a relative date phrase is used for up to a month and then the actual date is
8383

8484
<sup>*</sup>: If unspecified, `formatStyle` will return `'narrow'` if `format` is `'elapsed'` or `'micro'`, `'short'` if the format is `'relative'` or `'datetime'`, otherwise it will be `'long'`.
8585

86-
<sup>**</sup>: If unspecified, `month` will return the same value as `formatStyle` whenever `format` is `'datetime'`, otherwise it wil be `'short'`.
86+
<sup>**</sup>: If unspecified, `month` will return the same value as `formatStyle` whenever `format` is `'datetime'`, otherwise it will be `'short'`.
8787

8888
<sup>***</sup>: If unspecified, `weekday` will return the same value as `formatStyle` whenever `format` is `'datetime'`, otherwise it will be `undefined`.
8989

@@ -122,7 +122,7 @@ Unless specified, it will consider `weekday` to be `'long'`, `month` to be `'lon
122122

123123
###### `format=relative`
124124

125-
The default `relative` format will display dates relative to the current time (unless they are past the `threshold` value - see below). The values are rounded to display a single unit, for example if the time between the given `datetime` and the current wall clock time exceeds a day, then the format will _only_ ouput in days, and will not display hours, minutes or seconds. Some examples of this format with the default options and an `en` locale:
125+
The default `relative` format will display dates relative to the current time (unless they are past the `threshold` value - see below). The values are rounded to display a single unit, for example if the time between the given `datetime` and the current wall clock time exceeds a day, then the format will _only_ output in days, and will not display hours, minutes or seconds. Some examples of this format with the default options and an `en` locale:
126126

127127
- `in 20 days`
128128
- `20 days ago`
@@ -146,7 +146,7 @@ This is similar to the `format=duration`, except the `formatStyle` defaults to `
146146

147147
###### `format=auto`
148148

149-
This is identical to `format=relative`. Code that uses `format=auto` should migrae to `format=relative` as this will be the new default in a later version.
149+
This is identical to `format=relative`. Code that uses `format=auto` should migrate to `format=relative` as this will be the new default in a later version.
150150

151151
###### `format=micro`
152152

0 commit comments

Comments
 (0)