/crowdin:github-actionfrom Crowdin Skills
Sets up and debugs the Crowdin GitHub Action (crowdin/github-action) for syncing repositories with Crowdin projects and opening translation pull requests.
Ships in Crowdin Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
crowdin/github-action runs Crowdin CLI inside a Docker container as a single workflow step: it uploads source files to Crowdin, downloads finished translations, commits them to a localization branch, and opens a pull request.
Because it is a Docker action it only runs on Linux runners — ubuntu-latest, or a self-hosted Linux runner with Docker available. It will not run on macos-* or windows-*.
Reference: README · examples · inputs and outputs · workflow recipes
One step performs up to five operations, always in this fixed order, and each one is gated by its own input:
| Order | Input | Runs |
|---|---|---|
| 1 | upload_sources: true (default) | crowdin upload sources |
| 2 | upload_translations: true | crowdin upload translations |
| 3 | download_sources: true | crowdin download sources, then the git half |
| 4 | download_translations: true | crowdin download, then the git half |
| 5 | download_bundle: <id> | crowdin bundle download <id>, then the git half |
The git half is a single unit of work: git add ., commit, force-push the localization branch, open the PR. Its parts are individually switchable (push_translations, push_sources, create_pull_request), and only rows 3–5 can reach it.
That order explains nearly every surprise the action produces:
upload_sources defaults to true. A step you intended as download-only also pushes your sources to Crowdin unless you write upload_sources: false. Set every flag you care about explicitly rather than relying on defaults.create_pull_request: true on an upload-only step is inert — there is nothing to commit.git add . — everything dirty in the workspace goes in, including files earlier steps generated. Keep the Crowdin step ahead of any build steps, or give it its own job.Two of the five steps belong to a human: the repository secrets in step 2 and the pull-request setting in step 4 need someone with repository admin access clicking through the GitHub UI. Hand that list over explicitly rather than assuming it is already in place — a workflow that is perfect on disk still fails its first run without them.
crowdin.ymlThe action reads the same crowdin.yml as the CLI — the crowdin-cli skill covers files, placeholders, and language mapping. Three parts matter specifically here:
"project_id_env": "CROWDIN_PROJECT_ID"
"api_token_env": "CROWDIN_PERSONAL_TOKEN"
"preserve_hierarchy": true
files:
- source: "/src/locales/en/**/*.json"
translation: "/src/locales/%two_letters_code%/**/%original_file_name%"
project_id_env / api_token_env point at the environment variables the workflow supplies, so no credential is ever committed.preserve_hierarchy: true keeps Crowdin's file tree identical to the repository's. Without it Crowdin strips the common parent directory, and downloaded translations land in paths that don't match the repo — the usual cause of a PR full of files in the wrong place. It is also required when moving off the native GitHub (OAuth) integration.config input (no leading /).Repositories with a single source and translation pattern can skip the file entirely and pass source and translation as inputs instead — see no-crowdin.yml. Pick one or the other: a crowdin.yml in the repository conflicts with those inputs.
In Settings → Secrets and variables → Actions, add:
CROWDIN_PROJECT_ID — the numeric project ID, from Tools → API in the Crowdin project.CROWDIN_PERSONAL_TOKEN — a Crowdin personal access token (crowdin.com, or Account Settings → Access Tokens in Enterprise).Scope the token to what the workflow actually does — for a normal sync that is Projects → Read, Translation Status → Read, Source files & strings → Read and Write, Translations → Read and Write.
.github/workflows/crowdin.yml:
name: Crowdin
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write
pull-requests: write
concurrency:
group: crowdin
cancel-in-progress: false
jobs:
synchronize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Synchronize with Crowdin
uses: crowdin/github-action@v3
with:
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: l10n_crowdin
create_pull_request: true
pull_request_title: 'New Crowdin translations'
pull_request_base_branch_name: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
Details worth keeping when you adapt it:
env:, not with: — the CLI and the action's git code read them from the environment. (token and project_id inputs exist as an alternative, but a token in with: shows up in the step's rendered inputs.)workflow_dispatch is what lets you test the workflow without waiting for a push.concurrency with cancel-in-progress: false queues runs instead of racing them. Crowdin builds one export per project at a time: a run whose download starts while another run's build is still going waits for that build, and fails if it is still running after 10 minutes.pull_request_base_branch_name is worth setting explicitly: unset, the base branch is whatever ref triggered the run, which is correct for a push to main but broken for tag and release triggers.main, downloading on a schedule. See split workflows.actions/checkout@v7 was current in August 2026; check its releases rather than copying a pin from an older example.Pushing a branch and opening a PR needs contents: write and pull-requests: write. With the default GITHUB_TOKEN that means both the job-level permissions: block above and the repository setting Settings → Actions → General → Allow GitHub Actions to create and approve pull requests. Without the setting, PR creation fails even though the permissions look right.
The default token has one limitation no permission fixes: pull requests it opens do not trigger workflows, so the translation PR arrives with no CI checks. If checks must run on it, authenticate as something other than the Actions bot — a GitHub App (scoped, auto-rotating, the better default) or a classic PAT with the repo scope, passed as GH_TOKEN or GITHUB_TOKEN.
Valid YAML is not the finish line. This action fails at runtime — on credentials, file patterns and permissions — so the work is done when a run has printed the stages you expected, not when the file is written:
dryrun_action: true and dispatch the workflow. The CLI prints the files it would manage, so wrong source patterns surface here, before anything reaches Crowdin.UPLOAD SOURCES, then DOWNLOAD TRANSLATIONS, then either a PR URL or NOTHING TO COMMIT.RUNNER_DEBUG, dumps its environment, and adds --verbose --debug to every CLI call.Dispatching needs the human who holds the secrets; ask for the run's log rather than stopping at the workflow file.
Read the step's log first: it prints UPLOAD SOURCES, DOWNLOAD TRANSLATIONS, PUSH TO BRANCH, NOTHING TO COMMIT, and CREATE PULL REQUEST as it goes, so the pipeline stage that failed is visible before you start guessing.
| Symptom | Cause | Fix |
|---|---|---|
Green run, no PR, log says NOTHING TO COMMIT | Downloaded translations are byte-identical to what's committed | Working as intended — nothing to do |
| Green run, no PR, no download in the log | download_translations left at its false default | Set download_translations: true |
ERROR: Either 'GITHUB_TOKEN' or 'GH_TOKEN' must be set | Token missing from the step's env: | Add GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
FAILED TO AUTHENTICATE WITH GITHUB, or 403 on push | Job lacks write permissions, or the repo blocks Actions from creating PRs | Add the permissions: block and enable the repository setting (step 4) |
| PR opens but no CI checks run on it | PRs from the default GITHUB_TOKEN don't trigger workflows | Use a GitHub App token or a PAT |
| Checks restart on every sync run | The localization branch is force-pushed each time | Pass a PAT to actions/checkout so the pushes come from a user |
| PR creation fails on a tag or release trigger | Base branch defaults to the triggering ref, which is refs/tags/... | Set pull_request_base_branch_name |
| Later steps hit permission errors on downloaded files | The container runs as root, so the files it writes are root-owned | Add user: auto to detect the workspace owner |
Another build is still in progress after waiting 10 minutes, or a 409 on download | Parallel runs, or a long build started elsewhere, against one Crowdin project | Serialize with concurrency, or max-parallel: 1 in a matrix |
| Build artifacts in the translation PR | git add . commits the whole workspace | Move the Crowdin step before the build, or into its own job |
| Nothing downloads, project is string-based | download_translations doesn't apply to string-based projects | Download a bundle: download_bundle: <id> |
crowdin.yml not found | The action looks in the repository root | config: path/to/crowdin.yml, no leading / |
| Enterprise: 404 or auth failure from the CLI | Enterprise needs an organization-specific API host | base_url: 'https://{organization}.api.crowdin.com' |
command — running any CLI commandcommand (plus optional command_args) turns the step into an arbitrary CLI invocation: status, auto-translate, bundle, string, anything the CLI supports.
- name: Fail the build unless translations are complete
uses: crowdin/github-action@v3
with:
command: 'status translation'
command_args: '--fail-if-incomplete'
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
Two consequences of how it is implemented, neither of them documented upstream:
command replaces the pipeline. The step runs the command and exits — no upload, no download, no commit, no PR, whatever the other inputs say. Sequencing a command between an upload and a download takes three separate steps (AI pre-translation is the canonical example).config, token, project_id, base_url, base_path, crowdin_branch_name, and dryrun_action are not forwarded to a command step — only command_args is. Supply credentials through env: and put everything else in command_args (--config path/to/crowdin.yml, --branch main, --dryrun).The command's stdout is available to later steps as the command_output output.
@v3 is the current stable line and runs Crowdin CLI 5.
@v2 is the legacy line, bundling the Java-based Crowdin CLI 4. Every input, output, and default is identical between the two, so upgrading a pipeline-style step is a one-line pin change; what changes is the CLI underneath, and therefore the strings you pass to command and *_args. Most notably v4's pre-translate became auto-translate, and --plain became -o plain; the migration reference lists the rest. Stay on @v2 only while a command step still depends on v4-specific CLI syntax.
crowdin.yml configuration and the commands and flags behind every inputcommand_args on string commandsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub crowdin/skills --plugin crowdin16 skills in this plugin
/context-extractionWrites translator context (`ai_context`) for Crowdin strings - downloads them with `crowdin context`, fills the JSONL file, uploads it back. Use when enriching a Crowdin project's strings context, when a Crowdin JSONL context file needs its ai_context filled, or when translators guess at ambiguous strings for lack of context./create-appBuild a Crowdin app end to end and leave the user with a published app they can click - scaffold it with @crowdin/serverless-apps-cli, write the UI with @crowdin/serverless-apps-sdk, publish it into their Crowdin or Crowdin Enterprise organization, and open it for them. Reach for this whenever someone wants something of their own inside the Crowdin UI - a panel in the translation editor, a tool or report in a project, a page in the organization menu, a dashboard over their projects - or something that runs by itself: an MT engine, an event, a schedule - and also when they describe a localization chore they are tired of doing by hand. Covers phrasings like "create a Crowdin app", "add a tool to my Crowdin project", a bare "/create-app", and cases where the word "app" is never said. Also use it when a serverless Crowdin app already exists in the working directory and needs another module, a manifest change, or a republish. Not for the separate Crowdin CLI that syncs sources and translations through crowdin.yml./croqlHelps write, fix, and optimize Crowdin CroQL expressions for strings, translations, TM segments, and glossary terms. Use whenever the user mentions CroQL, Crowdin filters, advanced editor filtering, "where" conditions for localization data, or API queries with a `croql` parameter, even if they do not explicitly ask for query syntax help./crowdin-api-clientUse when implementing, refactoring, or reviewing `@crowdin/crowdin-api-client` usage in any JavaScript or TypeScript project, especially for endpoint selection, request/response typing, pagination, uploads, retries, timeouts, or `CrowdinError` handling./crowdin-cliGuides correct usage of Crowdin CLI - the `crowdin` command that syncs localization files between a local project and Crowdin. Use whenever the user runs, scripts, or debugs `crowdin` commands, authorizes the CLI, creates or edits a crowdin.yml configuration, uploads sources, downloads translations, checks translation status, auto-translates a project, wires localization into CI/CD, or migrates scripts from CLI v4 to v5 - even if they just say "sync translations" or "push strings to Crowdin" without naming the CLI./feedbackDrafts feedback about Crowdin for the Crowdin team - the skills in this plugin, the Crowdin MCP server, the Crowdin CLI, the Crowdin API or the product - and sends it as a GitHub issue in crowdin/skills only when the user explicitly asks. Use when the user asks to report or file something about Crowdin; after a Crowdin skill instruction, CLI command, MCP tool call or API call failed reproducibly and was just fixed or given up on; when the user is clearly frustrated with a Crowdin component; or when a Crowdin capability the user expected does not exist and blocked the task. Feedback about the agent itself belongs to the agent's own feedback mechanism.Other plugins' skills for the same job