Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/frontend-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,3 @@ jobs:
if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || inputs.always_run == true }}
run: 'pnpm lint:knip'
shell: bash

- name: translations
if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || inputs.always_run == true }}
run: |
echo "Checking for unused translations..."
if ! pnpm translations:check; then
echo ""
echo "❌ Translation file contains unused keys!"
echo ""
echo "To fix this, run:"
echo " pnpm translations:clean"
echo " pnpm fix"
echo ""
echo "Then commit the changes."
exit 1
fi
shell: bash
4 changes: 1 addition & 3 deletions invokeai/frontend/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
"build-storybook": "storybook build",
"test": "vitest",
"test:ui": "vitest --coverage --ui",
"test:no-watch": "vitest --no-watch",
"translations:check": "node scripts/clean-translations.js public/locales/en.json --mode check",
"translations:clean": "node scripts/clean-translations.js public/locales/en.json --mode clean"
"test:no-watch": "vitest --no-watch"
},
"dependencies": {
"@atlaskit/pragmatic-drag-and-drop": "^1.7.4",
Expand Down
Loading