Skip to content
Apps By Cube Localization Team 8 min read

Continuous Localization: Plugging Translation into Your CI/CD

continuous localization means translation runs alongside development instead of after it. New and changed strings are pushed from your repository to a t…

Continuous Localization: Plugging Translation into Your CI/CD

Short answer: continuous localization means translation runs alongside development instead of after it. New and changed strings are pushed from your repository to a translation platform automatically, linguists work on small batches as they arrive, and finished translations come back as pull requests that your CI pipeline checks before merge. The result: every release ships in every language at once.

Most software teams start localization the same way. Someone exports the strings before a big release, emails a file to a translator, waits two weeks, pastes the results back and discovers that half the keys changed in the meantime. That works once. It does not work when you ship every week, or several times a day. Continuous localization replaces the big handover with a small, automated flow that runs as part of the pipeline you already have. This guide explains how that flow works, what to automate, what to check, and where human judgement still matters.

What continuous localization actually means

In a traditional "waterfall" setup, localization is a phase. Development freezes the strings, translation happens, then engineers merge the translated files and testers check the result. Every release waits for the slowest language.

In a continuous setup, localization is a stream. The source language files in your repository are the single source of truth. Whenever they change, the change flows to translators. Whenever a translation is finished and approved, it flows back into the repository. Nobody exports or imports by hand, and nobody has to remember which version of the file a translator received.

The idea is simple. The practice depends on three things being in place first:

  • Proper internationalization (i18n). Strings must live in resource files, not in code. Dates, numbers and plurals must go through a locale-aware library. If this is not done, read our guide to i18n vs l10n before automating anything.
  • Stable string keys. Keys such as checkout.button.pay should not be renamed casually, because a renamed key looks like a brand-new string and is sent for translation again.
  • A translation management system (TMS) that can sync with your repository, such as Crowdin, Lokalise or Phrase. Each has its own integration options; check their current documentation for details.
Flat lavender illustration of a developer at a laptop pushing code while a translator on a second screen receives new strings, connected by a looping arrow
Developers keep shipping; translations arrive in small batches instead of one big handover.

The continuous localization loop, step by step

Every setup looks slightly different, but most follow the same six stages.

Six stages of a continuous localization pipeline: commit source strings, sync to the TMS, translate with context, automated QA, pull request back, release in every language
The six stages of a continuous localization loop.

1. Developers commit source strings

A developer adds or edits a string in the source file, for example en.json, as part of a normal feature branch. Good practice is to add a short comment or description for any string whose meaning is not obvious. That comment travels with the string to the translator.

2. The source file syncs to the TMS

When the change reaches the main branch (or a dedicated localization branch), a CI job or a native integration uploads the updated source file to the TMS. Only new and changed strings need translating; unchanged ones are already covered.

3. Linguists translate with context

Translators receive the new strings, together with the key, the developer's comment, any screenshot and the translation memory and glossary. Because the batch is small, turnaround can be quick. This is where most quality is won or lost. We cover it in detail in UI strings without context.

4. Automated QA runs

Before a translation can move on, scripts check that placeholders match, tags are intact, plural forms are complete and length limits are respected. Many TMS platforms run some checks themselves; you should also run your own in CI.

5. Translations return as a pull request

The TMS (or a scheduled job using its command-line tool) commits the translated files to a branch and opens a pull request. Your pipeline builds and tests it like any other change.

6. The release ships in every language

When the pull request is merged, the next release contains every language that is complete. Languages that are not complete can either fall back to the source language or be held back by a feature flag, depending on your policy.

Every release, every language, same day

A minimal pipeline example

The exact configuration depends on your TMS and CI provider, but the shape is usually the same. Here is a simplified, tool-neutral example of a GitHub Actions-style workflow. The tms-cli command is a placeholder for whatever CLI your platform provides.

name: localization-sync
on:
  push:
    branches: [main]
    paths: ["locales/en/**"]
  schedule:
    - cron: "0 */6 * * *"   # pull finished translations every 6 hours

jobs:
  upload-source:
    if: github.event_name == 'push'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: tms-cli upload --source "locales/en/*.json"

  download-translations:
    if: github.event_name == 'schedule'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: tms-cli download --approved-only
      - run: npm run i18n:check   # placeholders, plurals, JSON validity
      - run: ./scripts/open-pr.sh "chore(i18n): update translations"

The key design decisions are not in the YAML. They are in the questions behind it: which branch is the source of truth, how often translations come back, and what happens to a language that is only 90% done on release day.

What to check automatically

Automation is excellent at counting and matching. Use it for everything a machine can verify, and leave meaning to people.

CheckWhat it catchesExample
Placeholder matchMissing or renamed variables{count} in source, {cuenta} in target
Tag integrityBroken HTML or markupUnclosed <b> in a tooltip
Plural completenessMissing plural categoriesArabic needs up to six forms; only two supplied
File validitySyntax errors after translationUnescaped quote breaks a JSON file
Length limitsText that will overflowButton label over its character budget
Untranslated stringsSource text left in targetEnglish left in a German file

Pair these checks with a pseudo-localization build that runs on every pull request. It catches hard-coded strings and layout problems long before a real translation exists. See our guide to pseudo-localization for how to set one up.

Branching strategies that work

The most common question we hear from engineering leads is which branch to sync. There is no single right answer, but three patterns cover most teams:

  • Sync from main only. Simple and safe. Strings are translated once they are merged, so translators never work on text that might be thrown away. The trade-off is a small delay between merge and translation.
  • Sync from feature branches. Translation starts before merge, so a feature can ship fully localized on day one. The trade-off is wasted effort when strings change during review. Most TMS platforms can handle branches, but check how yours merges them.
  • A dedicated localization branch. Translations land on a long-lived branch that is merged into main on a schedule. This gives release managers more control but adds one more merge to manage.

For most product teams, syncing from main with a frequent download schedule is the right default. Move to branch-level sync only when "ship localized on day one" is a hard requirement.

Where human work still matters

Continuous localization automates the plumbing, not the translation. Three human tasks remain essential:

  • Answering questions. Translators will ask what a string means. Someone on the product team should own those questions and answer them within a day, or the pipeline stalls.
  • Glossary and style decisions. Product names, feature names and tone of voice need a decision once, recorded in the TMS, so every linguist follows it.
  • In-context review. Automated checks cannot tell you that a translated button label is technically correct but sounds rude. Periodic linguistic testing on the real build can. Our guide to software localization testing covers how to schedule it without slowing releases.

A pattern we often help with: a team already has an automated sync, but translations come back with broken placeholders because linguists see raw ICU syntax with no explanation. We add placeholder protection and short developer notes to the TMS project, and agree a simple routine for questions, so the pull requests that reach CI are clean and engineers stop fixing translated files by hand.

Common mistakes to avoid

  • Automating before internationalizing. A pipeline that syncs hard-coded or concatenated strings only moves the problem faster.
  • Treating every string change as urgent. Agree a service level (for example, small batches returned within an agreed number of working days) rather than expecting instant turnaround.
  • Letting translators edit source text. The repository is the source of truth. Source fixes should go through a normal code change.
  • Ignoring incomplete languages. Decide in advance whether a partly translated language ships with fallbacks or waits.
  • Skipping file-format checks. Every format has its own escaping rules. See localization file formats explained for the traps in JSON, XLIFF, PO and RESX.

Getting started

You do not need a perfect pipeline on day one. A reasonable first version is: source files in the repository, a TMS connected to the main branch, a scheduled download job that opens a pull request, and three automated checks (placeholders, file validity and plurals). Add branch sync, screenshots and length checks once the basic loop is running smoothly.

Our localization engineers set up and run this kind of workflow for software teams, from TMS configuration and file parsers to automated QA and in-build testing. Read how our localization engineering team works, see our web and software localization service, or ask for a quote with a sample of your resource files.

Flat lavender illustration of a product manager watching a release dashboard where the same app screen appears in several languages at once
The payoff: one release, every language, on the same day.

Frequently asked questions

Is continuous localization only for large teams?

No. Small teams often benefit most, because they have no one to manage manual handovers. A single scheduled job and a TMS project can be enough to start.

Does continuous localization mean machine translation?

Not necessarily. "Continuous" describes how files move, not who translates them. Human linguists can work in small, frequent batches. Some teams add machine translation with human post-editing for low-visibility text, but that is a separate decision.

How fast can translations come back?

It depends on batch size, the number of languages and the agreed service level. Small batches of a few dozen strings can often be turned around within a working day; larger features take longer. Agree realistic targets with your vendor rather than assuming instant results.

What happens to a language that is not finished by release day?

You choose. Common options are to fall back to the source language for missing strings, to hide the language behind a feature flag until it is complete, or to block the release. Most consumer products choose fallback for minor gaps and a flag for new markets.

Which file format works best for continuous localization?

The one your framework already uses. JSON, XLIFF, PO, Android XML, Apple string catalogs and RESX all work with major TMS platforms. What matters more is consistency: one format, stable keys and good comments.