Skip to content

Migrate with your AI

Moving to Localeo is an export, a sentence to your AI assistant, and a review.

There is no import wizard with a parser per file format. Localeo takes one JSON shape, and your assistant converts whatever you have into it: POEditor and Lokalise exports, XLIFF, gettext .po, Android strings.xml, iOS .strings, ARB, YAML, or the en.json and nl.json already in your repository. The assistant does the tedious part. Localeo checks every value on the way in and tells it exactly what it did not accept, so the assistant can fix it before you look.

Before you start

  1. Create the project in Localeo, with the same base language as your current source language.

  2. Add every language you want to bring over. An import never creates a language, so a language the project does not have is refused as unknown_language.

  3. Connect your assistant with read & write access. See Connect your AI.

  4. Connect as a manager. A developer’s connection imports only the base language, and only a manager’s can mark values approved. See What the assistant can do.

Move your strings

  1. Export from your current tool

    Export every language, in whatever format your tool offers. Formats that carry a description per key, such as XLIFF or gettext, keep that context for your translators. A plain key-value JSON export loses it but is just as easy to convert. If your strings already live in your repository, those files are the export.

  2. Ask your assistant to import them

    Give it the files and say what they are. For example:

    These are our POEditor exports for English, Dutch and German. Import them into Localeo. They are all reviewed and live, so import them as approved. Keep every placeholder exactly as it is.

    The assistant reads the project’s languages, converts the files into Localeo’s import shape, and sends them in chunks of at most 1000 keys. Each chunk is one import_translations call:

    {
    "status": "approved",
    "keys": [
    {
    "key": "checkout.pay",
    "description": "Primary button on the payment step",
    "values": { "en": "Pay {amount}", "nl": "Betaal {amount}", "de": "{amount} bezahlen" }
    }
    ]
    }
  3. Let it deal with errors and warnings

    Every call answers with counts and two lists. The assistant is told to read both, fix what it can, and tell you about the rest. Importing translations lists every code.

    • Errors were not written. A typical one is unknown_language, for a language the project is missing. Fix the cause (add the language in the dashboard) and have the assistant send those keys again. Re-sending is safe: values that already exist are skipped, so nothing is duplicated.
    • Warnings were written. A typical one is placeholder_mismatch, a translation whose placeholders do not match its source. The value is already in Localeo, so a plain resend skips it. Correcting it takes an import with overwrite: true, and that only works on a value that is not approved. An approved value can only be corrected in the dashboard.

    That is why the order matters. If the files may have placeholder problems, either have the assistant check every value’s placeholders against the source before importing as approved, or do a draft pass: import everything as draft, fix the warnings with overwrite: true, and approve once it is clean.

    Before importing anything as approved, compare every translation’s placeholders with the English source and list the ones that differ.

  4. Check it

    Warnings live only in each import’s response; Localeo does not keep a list of them. To check the result afterwards, have the assistant read the project back with search_translations and get_key, or look in the dashboard:

    How many keys are untranslated in each language? Read back the Dutch and German values and list any whose placeholders don’t match the English.

  5. Publish, then point your app at Localeo

    Ask for a release once you are happy. Then switch your app from its bundled files to the release’s download URLs, or to the latest path that always serves the newest release.

Draft or approved?

Use approved for strings that are reviewed and live in your app today. That records them as reviewed in Localeo, and no later import can overwrite an approved value. Your team edits those in the dashboard.

Use draft, the default, for anything nobody has checked: machine translations, half-finished languages, strings your old tool flagged as fuzzy or unverified. Your team reviews and approves those in the dashboard.

When in doubt, import as draft. A draft can still be corrected by a later import with overwrite: true. An approved value cannot.

What changes, and what does not

  • Placeholders are stored exactly as you send them. {name}, {{name}}, %s, %1$d and ICU messages all reach the published bundle byte for byte, so your app’s i18n library reads them as before. The assistant is told never to convert between syntaxes. The one Localeo-specific syntax is {name:Type} in the base language, which declares a typed parameter.
  • Bundles are flat. A key is one string, and a published .json file maps each full key to its value, as in {"home.title": "Welcome"}. Nested source files become dot-separated keys when they are converted. If your app reads nested JSON, set your i18n library to read flat keys. In i18next that is keySeparator: false.
  • One string per key and language. Localeo has no separate plural forms. A plural your old tool kept as several entries becomes either several keys or one ICU message, whichever your i18n library reads. Tell your assistant which.
  • Not everything moves. Comment threads, screenshots, translation memory, review history, contributors and your old tool’s settings stay behind. You invite your team to Localeo separately.

Without an AI

The import is a plain REST endpoint, so a script works too. This turns an en.json and an nl.json into one import, flattening nested keys. It leaves an empty value wherever Dutch has no translation yet. An empty value is skipped, not written.

Terminal window
jq -n --slurpfile en en.json --slurpfile nl nl.json '
def flat: [paths(scalars) as $p
| {key: ($p | map(tostring) | join(".")), value: getpath($p)}]
| from_entries;
($en[0] | flat) as $EN | ($nl[0] | flat) as $NL
| {status: "draft",
keys: [$EN | keys_unsorted[]
| {key: ., values: {en: $EN[.], nl: ($NL[.] // "")}}]}' > import.json
curl -s "https://api-public-dev.localeo.app/v1/translations/import" \
-H "Authorization: Bearer $LOCALEO_TOKEN" \
-H "Content-Type: application/json" \
-d @import.json

This needs a write token. Over 1000 keys, send the file in chunks.