Skip to content

Commit 49c6697

Browse files
Merge pull request #630 from opentripplanner/add-i18n-checks
Add i18n checks
2 parents 75129ca + 6670bcb commit 49c6697

File tree

4 files changed

+335
-6
lines changed

4 files changed

+335
-6
lines changed

Diff for: i18n/en-US.yml

-1
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ common:
649649
forms:
650650
back: Back
651651
cancel: Cancel
652-
clear: Clear
653652
close: Close
654653
error: error!
655654
defaultValue: "{value} (default)"

Diff for: i18n/fr.yml

-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ common:
628628
forms:
629629
back: Retour
630630
cancel: Annuler
631-
clear: Effacer
632631
close: Fermer
633632
error: erreur !
634633
defaultValue: "{value} (défaut)"

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)