Skip to content

Commit 284967b

Browse files
test(i18n): Add i18n checks from @opentripplanner/scripts.
1 parent 75129ca commit 284967b

File tree

2 files changed

+335
-4
lines changed

2 files changed

+335
-4
lines changed

Diff for: package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
"scripts": {
66
"a11y-test": "jest a11y/ --runInBand --force-exit",
77
"build": "craco build",
8+
"check:i18n": "node node_modules/@opentripplanner/scripts/lib/run-validate-i18n.js lib i18n/en-US.yml i18n/fr.yml",
89
"unit": "jest __tests__/",
910
"lint": "lint-staged",
1011
"lint-all": "eslint lib __tests__ a11y --quiet",
1112
"postinstall": "patch-package && husky install",
1213
"prepublishOnly": "pinst --disable",
1314
"postpublish": "pinst --enable",
1415
"prestart": "yarn",
15-
"test": "yarn run lint && yarn run typecheck && yarn run unit",
16+
"test": "yarn run lint && yarn run typecheck && yarn check:i18n && yarn run unit",
1617
"typecheck": "yarn tsc",
1718
"semantic-release": "semantic-release",
1819
"start": "craco start",
@@ -41,12 +42,12 @@
4142
"@opentripplanner/geocoder": "^1.2.1",
4243
"@opentripplanner/humanize-distance": "^1.2.0",
4344
"@opentripplanner/icons": "^1.2.0",
44-
"@opentripplanner/route-viewer-overlay": "^1.4.0",
4545
"@opentripplanner/itinerary-body": "^3.0.4",
4646
"@opentripplanner/location-field": "1.12.2",
4747
"@opentripplanner/location-icon": "^1.4.0",
4848
"@opentripplanner/park-and-ride-overlay": "^1.2.4",
4949
"@opentripplanner/printable-itinerary": "^2.0.1",
50+
"@opentripplanner/route-viewer-overlay": "^1.4.0",
5051
"@opentripplanner/stop-viewer-overlay": "^1.1.1",
5152
"@opentripplanner/stops-overlay": "^4.0.0",
5253
"@opentripplanner/transit-vehicle-overlay": "^2.3.1",
@@ -124,6 +125,7 @@
124125
"@babel/preset-typescript": "^7.15.0",
125126
"@craco/craco": "^6.3.0",
126127
"@jackwilsdon/craco-use-babelrc": "^1.0.0",
128+
"@opentripplanner/scripts": "^1.0.1",
127129
"@opentripplanner/types": "^1.2.0",
128130
"@percy/cli": "^1.0.0-beta.76",
129131
"@percy/puppeteer": "^2.0.0",

0 commit comments

Comments
 (0)