Convert XLIFF2 to ARB
Turn XLIFF2 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 XLIFF2 files on the dialor turn it to pick what to do
Translation units as a Flutter ARB file.Each message becomes one entry, with plurals as ICU messages and notes as descriptions.
What you get
One ARB file with one message per entry. Each entry is keyed by its context. If a unit has no context, the key is made from the source text as an identifier. A numeric unit id is not taken as a context.
Plural entries become ICU plural messages over the plural categories of the language. Notes become descriptions.
What each entry holds
An entry that has no finished translation keeps its source text. For an entry that is translated, the source text is dropped and the translation is kept.
The segments of a unit are joined into one message. Inline codes keep their text. Placeholders such as
<ph/>become their display text.What is left behind
Translator comments are dropped. Source references are dropped too.
XLIFF2 and ARB.What each format is.
The formats
XLIFF 2.0
XLIFF 2.0, the newer translation exchange format with units, segments and states.
- Extensions
- .xlf .xliff
- MIME type
- application
/x -xliff2 +xml - Kind
- Text and data
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 XLIFF2 to ARB conversion through the API, for your app or your agent.
$ cv convert report.xlf report.arb$ cv convert report.xlf report.arbQuestions.What people ask about XLIFF2 to ARB.
The key is the context when the unit has one. Otherwise it is the source text made into an identifier. A numeric unit id is not used as a context.
They are kept, with their source text as the message. Only entries with a finished translation use the translated text.
Yes. Plural entries become ICU plural messages over the plural categories of the language.
Notes become descriptions in the ARB file. Translator comments are dropped.