Skip to content

Commit 98945a4

Browse files
ci: add translation string check to frontend checks
1 parent 9610f34 commit 98945a4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/frontend-checks.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,20 @@ jobs:
8383
if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || inputs.always_run == true }}
8484
run: 'pnpm lint:knip'
8585
shell: bash
86+
87+
- name: translations
88+
if: ${{ steps.changed-files.outputs.frontend_any_changed == 'true' || inputs.always_run == true }}
89+
run: |
90+
echo "Checking for unused translations..."
91+
if ! pnpm translations:check; then
92+
echo ""
93+
echo "❌ Translation file contains unused keys!"
94+
echo ""
95+
echo "To fix this, run:"
96+
echo " pnpm translations:clean"
97+
echo " pnpm fix"
98+
echo ""
99+
echo "Then commit the changes."
100+
exit 1
101+
fi
102+
shell: bash

0 commit comments

Comments
 (0)