e6491d6a80
## Summary This PR fixes translation QA issues and adds automation to prevent future issues. ### Translation Fixes - Fixed **escaped Unicode sequences** in translations (e.g., `\u62db\u5f85` → `招待`) - Removed **corrupted control characters** from .po files (null bytes, invalid characters) - Fixed **missing/incorrect placeholders** in various languages - Deleted **35 problematic translations** via Crowdin API that had variable mismatches ### New Scripts (in `packages/twenty-utils/`) - `fix-crowdin-translations.ts` - Auto-fixes encoding issues and syncs to Crowdin - `fix-qa-issues.ts` - Fixes specific QA issues via Crowdin API - `translation-qa-report.ts` - Generates weekly QA report from Crowdin API ### New Workflow - `i18n-qa-report.yaml` - Weekly workflow that creates a PR with translation QA issues for review ### Other Changes - Moved GitHub Actions from `.github/workflows/actions/` to `.github/actions/` - Fixed `date-utils.ts` to avoid nested `t` macros in plural expressions (root cause of confusing placeholders) ### QA Status After Fixes | Category | Count | Status | |----------|-------|--------| | variables | 0 ✅ | Fixed | | tags | 1 | Minor | | empty | 0 ✅ | Fixed | | spaces | 127 | Low priority | | numbers | 246 | Locale-specific | | special_symbols | 268 | Locale-specific |
43 lines
1.7 KiB
YAML
43 lines
1.7 KiB
YAML
name: Yarn Install
|
|
inputs:
|
|
node-version:
|
|
required: false
|
|
default: '24'
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Cache primary key builder
|
|
id: globals
|
|
shell: bash
|
|
run: |
|
|
echo "ACTION_SHELL=bash" >> "${GITHUB_OUTPUT}"
|
|
echo "CACHE_KEY_PREFIX=node_modules-cache-node-${{ inputs.node-version }}-${{ hashFiles('yarn.lock') }}" >> "${GITHUB_OUTPUT}"
|
|
echo 'PATH_TO_CACHE<<EOF' >> $GITHUB_OUTPUT
|
|
echo "node_modules" >> $GITHUB_OUTPUT
|
|
echo "packages/*/node_modules" >> $GITHUB_OUTPUT
|
|
echo 'EOF' >> $GITHUB_OUTPUT
|
|
- name: Setup Node.js and get yarn cache
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ inputs.node-version }}
|
|
- name: Restore node_modules
|
|
id: cache-node-modules
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
key: v4-${{ steps.globals.outputs.CACHE_KEY_PREFIX }}-${{github.sha}}
|
|
restore-keys: v4-${{ steps.globals.outputs.CACHE_KEY_PREFIX }}-
|
|
path: ${{ steps.globals.outputs.PATH_TO_CACHE }}
|
|
- name: Install Dependencies
|
|
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' && steps.cache-node-modules.outputs.cache-matched-key == '' }}
|
|
shell: ${{ steps.globals.outputs.ACTION_SHELL }}
|
|
run: |
|
|
yarn config set enableHardenedMode true
|
|
yarn --immutable --check-cache
|
|
- name: Save cache
|
|
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' && steps.cache-node-modules.outputs.cache-matched-key == '' }}
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
key: ${{ steps.cache-node-modules.outputs.cache-primary-key }}
|
|
path: ${{ steps.globals.outputs.PATH_TO_CACHE }}
|