Convert XLIFF to ARB

Turn XLIFF files into ARB. A Flutter ARB file with one message per entry, keyed by the context or else the source text made into an identifier, plural entries as ICU plural messages over the language's plural categories, and notes as descriptions.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop XLIFF files on the dialor turn it to pick what to do

Translation units, ready for Flutter.Each XLIFF entry becomes one ARB message, with notes kept as descriptions.

  1. What you get

    One ARB file for a Flutter app, with one message per entry. Each message is keyed by its context. If there is no context, the key is made from the source text as an identifier.

    Plural entries become ICU plural messages over the plural categories of the language. Notes become descriptions.

  2. Source and translation

    Entries without a finished translation keep their source text. For translated entries, the translation is used and the source text is dropped.

    A numeric trans-unit id is not taken as a context, so it does not become a key.

  3. Inline codes and placeholders

    Inline codes keep their text. Empty placeholders such as <x/> become their equiv-text. When a placeholder has no equiv-text, it is dropped.

  4. What it leaves behind

    Translator comments are dropped. Source references are dropped too.

XLIFF and ARB.What each format is.

The formats

From · XLIFF

XLIFF 1.2

XLIFF 1.2, the XML exchange format of translation tools, with trans-units, states and notes.

Extensions
.xlf .xliff
MIME type
application/xliff+xml
Kind
Text and data
To · ARB

Flutter ARB

Application Resource Bundle JSON of Flutter apps, with ICU messages and descriptions.

Extensions
.arb
MIME type
application/x-arb+json
Kind
Text and data

In your code.The same XLIFF to ARB conversion through the API, for your app or your agent.

terminal
$ cv convert report.xlf report.arb
$ cv convert report.xlf report.arb

Questions.What people ask about XLIFF to ARB.

01OF 04

The key is the context of the entry. If there is no context, the source text is made into an identifier. A numeric trans-unit id is never used as a context.

They keep their source text in the ARB file. Only entries with a finished translation use the translation.

Yes. Plural entries become ICU plural messages over the plural categories of the language.

Yes. Notes become descriptions in the ARB file. Translator comments are not kept.

More conversions.Other ways in and out of XLIFF and ARB.