Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
uses: actions/setup-node@v2.4.1
with:
node-version: 17
check-latest: true
cache: 'yarn'
- run: yarn
- run: yarn run build
Expand All @@ -23,6 +24,7 @@ jobs:
uses: actions/setup-node@v2.4.1
with:
node-version: 17
check-latest: true
cache: 'yarn'
- run: yarn
- run: yarn run build
Expand All @@ -31,14 +33,14 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
# 17.2 seems to have a bug with Intl.DateTimeFormat
node: [ '14', '16', '17.1' ]
node: [ '14', '16', '17' ]
steps:
- uses: actions/checkout@v2.3.5
- name: Use Node.js
uses: actions/setup-node@v2.4.1
with:
node-version: ${{ matrix.node }}
check-latest: true
cache: 'yarn'
- run: yarn
- run: yarn run build
Expand All @@ -65,6 +67,7 @@ jobs:
uses: actions/setup-node@v2.4.1
with:
node-version: 17
check-latest: true
- run: yarn --immutable --inline-builds
- run: yarn run build
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pull_request_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
uses: actions/setup-node@v2.4.1
with:
node-version: 17
check-latest: true
cache: 'yarn'
- run: yarn
- run: echo '${{ github.event.pull_request.title }}' | yarn run commitlint
18 changes: 9 additions & 9 deletions packages/use-i18n/src/__tests__/__snapshots__/formatDate.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ exports[`formatDate should work with custom format and locale en 2`] = `"Thursda

exports[`formatDate should work with custom format and locale en 3`] = `"Thursday, F 13, 20 AD, 03:28:00 PM Coordinated Universal Time"`;

exports[`formatDate should work with custom format and locale es 1`] = `"jueves, 13 F 20 d. C. 16:28:00 (tiempo universal coordinado)"`;
exports[`formatDate should work with custom format and locale es 1`] = `"jueves, 13 F 20 d. C., 16:28:00 (tiempo universal coordinado)"`;

exports[`formatDate should work with custom format and locale es 2`] = `"jueves, 13 F 20 d. C. 15:28:00 (tiempo universal coordinado)"`;
exports[`formatDate should work with custom format and locale es 2`] = `"jueves, 13 F 20 d. C., 15:28:00 (tiempo universal coordinado)"`;

exports[`formatDate should work with custom format and locale es 3`] = `"jueves, 13 F 20 d. C. 15:28:00 (tiempo universal coordinado)"`;
exports[`formatDate should work with custom format and locale es 3`] = `"jueves, 13 F 20 d. C., 15:28:00 (tiempo universal coordinado)"`;

exports[`formatDate should work with custom format and locale fr 1`] = `"jeudi 13 F 20 ap. J.-C., 16:28:00 Temps universel coordonné"`;
exports[`formatDate should work with custom format and locale fr 1`] = `"jeudi 13 F 20 ap. J.-C., 16:28:00 temps universel coordonné"`;

exports[`formatDate should work with custom format and locale fr 2`] = `"jeudi 13 F 20 ap. J.-C., 15:28:00 Temps universel coordonné"`;
exports[`formatDate should work with custom format and locale fr 2`] = `"jeudi 13 F 20 ap. J.-C., 15:28:00 temps universel coordonné"`;

exports[`formatDate should work with custom format and locale fr 3`] = `"jeudi 13 F 20 ap. J.-C., 15:28:00 Temps universel coordonné"`;
exports[`formatDate should work with custom format and locale fr 3`] = `"jeudi 13 F 20 ap. J.-C., 15:28:00 temps universel coordonné"`;

exports[`formatDate should work with custom format and locale ro 1`] = `"joi, 13 F 20 d.Hr., 16:28:00 Timpul universal coordonat"`;

Expand All @@ -40,7 +40,7 @@ exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28

exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "en" 1`] = `"February 13, 2020, 3:28 PM"`;

exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "es" 1`] = `"13 de febrero de 2020 15:28"`;
exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "es" 1`] = `"13 de febrero de 2020, 15:28"`;

exports[`formatDate should work with format "hour", for date = "2020-02-13T15:28:00.000Z" and locale "fr" 1`] = `"13 février 2020, 15:28"`;

Expand All @@ -50,7 +50,7 @@ exports[`formatDate should work with format "hour", for date = "1581607680000" a

exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "en" 1`] = `"February 13, 2020, 3:28 PM"`;

exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "es" 1`] = `"13 de febrero de 2020 15:28"`;
exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "es" 1`] = `"13 de febrero de 2020, 15:28"`;

exports[`formatDate should work with format "hour", for date = "1581607680000" and locale "fr" 1`] = `"13 février 2020, 15:28"`;

Expand All @@ -60,7 +60,7 @@ exports[`formatDate should work with format "hour", for date = "new Date(2020, 1

exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "en" 1`] = `"February 13, 2020, 4:28 PM"`;

exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "es" 1`] = `"13 de febrero de 2020 16:28"`;
exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "es" 1`] = `"13 de febrero de 2020, 16:28"`;

exports[`formatDate should work with format "hour", for date = "new Date(2020, 1, 13, 16, 28)" and locale "fr" 1`] = `"13 février 2020, 16:28"`;

Expand Down