Skip to content

Commit

Permalink
Merge pull request #1490 from oasisprotocol/lw/extract-msgs
Browse files Browse the repository at this point in the history
Always recreate English translation with extract-messages
  • Loading branch information
lukaw3d authored Jun 7, 2023
2 parents 2200079 + 5bd9a71 commit 71c3967
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
# Check if all i18n terms in code are synced with source (English) translation file.
- name: Check English translation is synced
run: |
rm src/locales/en/translation.json
yarn extract-messages
git diff --exit-code src/locales/en/translation.json
# Check passed, revert changes to any other translation so it doesn't get applied by mega-linter.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint": "eslint --ext js,ts,tsx ./",
"lint:fix": "yarn run lint --fix",
"lint:css": "stylelint src/**/*.css",
"extract-messages": "i18next-scanner --config=internals/extractMessages/i18next-scanner.config.js",
"extract-messages": "rm src/locales/en/translation.json && i18next-scanner --config=internals/extractMessages/i18next-scanner.config.js",
"fix-grommet-icons-types": "node ./internals/scripts/fix-grommet-icons-types.js",
"print-csp": "node ./internals/scripts/print-csp.js",
"print-extension-csp": "node ./internals/scripts/print-extension-csp.js"
Expand Down

0 comments on commit 71c3967

Please sign in to comment.