From 5bf795ccfa1b90fb4f2ae224a866ab909d66d55f Mon Sep 17 00:00:00 2001 From: jajjibhai008 Date: Thu, 20 Jun 2024 15:12:39 +0500 Subject: [PATCH] feat: add github check to validate i18n string extraction --- .github/workflows/ci.yml | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb2b3266ff..73f09feee4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,8 @@ jobs: run: npm ci - name: Lint run: npm run lint + - name: extract_translations + run: make extract_translations - name: Test run: npm run test - name: Coverage diff --git a/package.json b/package.json index c550d5aa0d..b2e3677eb0 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ ], "scripts": { "build": "fedx-scripts webpack", - "i18n_extract": "fedx-scripts formatjs extract", + "i18n_extract": "fedx-scripts formatjs extract --throws", "build:with-theme": "THEME=npm:@edx/brand-edx.org@latest npm run install-theme && fedx-scripts webpack", "check-types": "tsc --noemit", "lint": "fedx-scripts eslint --ext .js --ext .jsx .; npm run check-types",