Migrate from Lokalise

Updated

Bring a Lokalise project across in one go: keys and their translations, descriptions, character limits, tags, review status, screenshots with their key links, the glossary and, into a new project, your Lokalise branches. It runs in the background with live progress, ends with a report of what was imported and what was skipped, and emails you when it is done. It is included on every plan, within your plan's limits.

Start an import

There are three ways in, all leading to the same page:

  • On the Dashboard, the Import from Lokalise card.
  • In the New project dialog, Import from Lokalise. The name and workspace you already typed go along.
  • For a project that already exists: Project Settings → Management → Import from Lokalise. Only project admins and owners see it.

Then:

  1. Connect Lokalise. Paste a Lokalise API token and click Show my projects. If the token is wrong, the rest of the form stays as it was.
  2. Choose the Lokalise project to import.
  3. Choose where it goes. A new Translatize project (with a name and, if you like, a workspace), or an existing one. Then the branch: main, an existing branch, or a new branch.
  4. Map the languages. The page shows each Lokalise language next to the Translatize language it will become. Languages Translatize does not support are listed as skipped, and each Translatize language can be chosen once. Languages the project does not have yet are added to it.
  5. Pick what to import (see below) and click Start import.

While it runs you see progress per phase – keys and translations, branches, screenshots, glossary terms. You can leave the page: the import keeps running, and you get an email when it finishes. Cancel import stops it; what was written so far stays.

The Lokalise token

Create an API token in Lokalise under Profile settings → API tokens. A read-only token is enough, because Translatize only reads from Lokalise. The token only sees the Lokalise projects where you are an admin.

Your token is not stored
The token is held in memory for the length of the import and never saved. It is not written to the audit log either. If you reload the page before starting, you paste it again. If a running import stops before it finishes, it is shown as Import interruptedand asks for the token again before it carries on. What was written so far stays. Delete the token in Lokalise when you are done if you like.

What is imported

Keys and translations are always imported. The rest are options on the form, all on by default except where noted.

From LokaliseIn Translatize
Keys and their translationsLabels with a value per language.
Plural keysICU plural messages: {count, plural, one {…} other {…}}. A plural that cannot become a valid ICU message keeps its other text and is counted in the report.
Key descriptions (option)The label description, shown to translators and used as context for AI translation.
Character limits (option)The label character limit.
Tags (option)Label tags. A tag over 50 characters is left out.
Review status (option)Per key, from its target languages: reviewed in all of them becomes approved, unverified in any becomes review, anything else stays draft.
Screenshots (option)Manual screenshots, with their links to keys. They count towards your screenshot storage.
Glossary (option)Terms with their translations, case sensitivity and forbidden terms. A term Lokalise marks as not translatable becomes a do-not-translate term: its own text in every language.
Lokalise branches (option)Translatize branches. Only possible when the import creates a new project.

Update keys that already exist is on by default when you import into an existing project: Lokalise values replace what is there for the languages you import. Turn it off to add what is missing and leave existing keys and terms as they are. Imported values do not feed the translation memory, and the quality checks run on what was imported.

Placeholders and key names

Placeholders stay as they are stored in Lokalise, with one exception. Lokalise's universal placeholders – [%s], [%1$s], [%d], [%i], [%f], [%.2f] and their numbered forms – become the printf form (%s, %1$s, %d, %.2f). A name after the colon is dropped, because printf has no names, and a literal [%] becomes %%. Key references ([%key:…%]) stay as stored. The report counts all of these.

A Lokalise key can have a different name per platform. Translatize uses the web (or "other") name, otherwise the first one available, and keeps the other platform names as tags such as lokalise:ios=<name>. The report says how many keys this applied to.

What is skipped

  • Hidden and archived keys.
  • Keys whose name Translatize does not allow, and keys that end up with the same name as another key.
  • Languages Translatize does not support.
  • Comments, custom translation statuses, Lokalise translation memory and contributors are not imported.
  • Screenshots of Lokalise branches: only the main branch's screenshots are imported, because their key links are per branch.
  • Anything over your plan's limits – see Plans and limits.

Everything skipped is in the final report, with counts and a short list of example keys. Screenshots and the glossary say so when Lokalise did not give access to them with your token or plan, and the import carries on without them.

Branches in an existing project
Lokalise branches become Translatize branches only when the import creates a new project. A key deleted on a Lokalise branch is not removed from the Translatize branch, because an import only adds and updates.

The report

When the import ends, the page shows its report and the email links to it. Recent imports stay listed on the import page. The report has:

  • keys created, updated, and already there and left as they were;
  • keys skipped, by reason: hidden, archived, name not allowed, duplicate name, over the plan limit;
  • screenshots stored, already there, links to keys, and skipped;
  • glossary terms imported and skipped;
  • languages added to the project and languages left out;
  • branches imported, and any that did not fit;
  • notes: plurals turned into ICU messages, placeholders converted, key references left as they were, keys with per-platform names, values that were too long to import.

The status is Import finished, Import stopped early (a plan or time limit was reached), Import failed, Import interrupted or Import cancelled.

Plans and limits

The import follows your plan like any other way of adding keys: source keys, the number of projects, branches per project and screenshot storage. The import page shows what is left before you start. An import that reaches a limit stops there, keeps what fit, and the report says what did not. After you free up room or upgrade, run it again.

Running an import again is safe. It updates the same keys instead of adding copies and adds what is missing. Only one import can run at a time for you and for a given project; if many imports are running across Translatize, yours waits in a short queue. A very long import stops at a time limit and says so in its report. See the plans on the home page for your plan's numbers.

After the import

Open the project and check the branch you imported into. From here you can pull the files with the CLI in any of the twelve file formats, connect the GitHub App, or let AI translation fill the gaps. The import is recorded in the audit log as Imported from Lokalise, with counts only.