ci: add translation string check to frontend checks

This commit is contained in:
psychedelicious 2025-09-04 22:35:56 +10:00
parent 9610f34dd4
commit 98945a4560

View File

@ -83,3 +83,20 @@ 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