Skip to main content
Run Crowdin file commands in GitHub Actions with the same Hyperlocalise CLI you use locally. This workflow uploads sources, downloads currently approved French translations, and saves them as a review artifact. It does not wait for newly uploaded strings to be translated or approved.

Prepare your repository

Install and test the Crowdin workflow locally. Commit locales/en.json and this crowdin.yml, substituting your project ID:
Create a GitHub Actions repository secret named CROWDIN_PERSONAL_TOKEN with project access. Set the repository variable HYPERLOCALISE_CLI_VERSION to the release you tested, including its v prefix. The workflow below requires that variable, so CI does not silently change CLI versions.

Add the workflow

Save as .github/workflows/crowdin.yml. Start it manually from the repository’s trusted default branch when you intend to upload the current sources.

Review the result

Download the artifact from the Actions run, inspect the JSON, and compare it with your repository’s current French file before committing. An upload success means Crowdin received the sources; it does not mean the target locale is complete. Missing approval or an empty export can leave no artifact and fail the workflow. For incremental updates that retain local keys missing from an approved export, use merge-approved and ensure the existing French file is checked out. Do not expose write credentials to untrusted pull-request code. See Crowdin CLI reference for branch and language filters, and CI automation for local translation checks.