Update crowdin.yml

This commit is contained in:
Xikaro
2026-02-25 00:41:55 +05:00
parent 0062c66055
commit 54e0b6b1e5

View File

@@ -219,46 +219,3 @@ jobs:
echo "- 🌐 [Language Settings](https://crowdin.com/project/${{ steps.project-info.outputs.project-name }}/settings#languages)" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "📊 Use detailed statistics above to review translation progress." >> $GITHUB_STEP_SUMMARY
# Quality validation job (runs after successful sync)
validate-translations:
runs-on: ubuntu-latest
needs: sync
if: always() && needs.sync.result == 'success' && github.event.inputs.operation != 'upload'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
# Fetch translations branch for validation
ref: translations
- name: Validate translation files
run: |
echo " Validating downloaded translation files..."
# Find all translation files (non-English)
find kubejs/assets -name "*.json" -type f ! -name "en_us.json" | while read file; do
echo " Validating: $file"
# Check if file is valid JSON
if ! jq empty "$file" 2>/dev/null; then
echo " Invalid JSON in $file"
continue
fi
# Check for empty translations
empty_keys=$(jq 'paths(scalars) as $p | $p | select(getpath($p) == "" or getpath($p) == null)) | length' "$file")
if [ "$empty_keys" -gt 0 ]; then
echo " Found $empty_keys empty translation keys in $file"
fi
# Check file size (very small files might be incomplete)
file_size=$(stat -c%s "$file")
if [ "$file_size" -lt 100 ]; then
echo " Very small file ($file_size bytes): $file"
fi
done
echo " Translation validation completed"