SMS pagination #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Crowdin — Upload Sources | |
| # Trigger whenever the English source strings change on main. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'src/locales/en-US.ts' | |
| workflow_dispatch: | |
| jobs: | |
| upload-sources: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Convert en-US.ts → .crowdin/en-US.json | |
| run: node scripts/i18n-ts-to-json.mjs | |
| - name: Upload sources to Crowdin | |
| uses: crowdin/github-action@v2 | |
| with: | |
| upload_sources: true | |
| upload_translations: false | |
| download_translations: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |