From fbf7b5d0226750733c0035b07a766b7c1dff81ef Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Mon, 24 Oct 2022 10:53:55 -0400 Subject: [PATCH] Add i18n CI --- .github/workflows/lint.yaml | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 60e6703..2241165 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -16,6 +16,8 @@ jobs: run: "yarn install" - name: Prettier run: "yarn run prettier:check" + - name: i18n + run: "yarn run i18n:check" - name: ESLint run: "yarn run lint:js" - name: Type check diff --git a/package.json b/package.json index 00c79bb..ba298dd 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "lint": "yarn lint:types && yarn lint:js", "lint:js": "eslint --max-warnings 0 src", "lint:types": "tsc", - "i18n": "node_modules/i18next-parser/bin/cli.js" + "i18n": "node_modules/i18next-parser/bin/cli.js", + "i18n:check": "node_modules/i18next-parser/bin/cli.js --fail-on-warnings --fail-on-update" }, "dependencies": { "@juggle/resize-observer": "^3.3.1",