Convert XLIFF2 to STRINGS

Turn XLIFF2 files into STRINGS. An Apple .strings file in UTF-8 with one "key" = "value"; line per entry, keyed by the context or else the source text, with notes as comments.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A strings file for your iOS or macOS app.One line per entry, in UTF-8, ready to use as Localizable.strings.

  1. What you get

    An Apple Strings file in UTF-8 with one "key" = "value"; line per entry. Each entry is keyed by its context. If a unit has no context, the source text is the key. Notes from the XLIFF 2.0 file become comments.

    A numeric unit id is not taken as a context, so a unit with only a number as its id is keyed by its source text.

  2. How text is written

    The segments of a unit are joined into one value. Inline codes keep their text. Placeholders such as <ph/> become their display text.

    Entries without a finished translation keep their source text as the value, so the file has a line for every entry.

  3. What changes or is dropped

    The source text of translated entries is dropped, and only the translation is written. Plural entries keep their first form, so the other plural forms are not in the output.

    Translator comments and source references are dropped. Only notes are kept, as comments.

XLIFF2 and STRINGS.What each format is.

The formats

From · XLIFF2

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
To · STRINGS

Apple Strings

Localizable.strings files of iOS and macOS apps, one "key" = "value"; line per string.

Extensions
.strings
MIME type
text/x-apple-strings
Kind
Text and data

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

terminal
$ cv convert report.xlf report.strings
$ cv convert report.xlf report.strings

Questions.What people ask about XLIFF2 to STRINGS.

01OF 04

The key is the context of the unit. If the unit has no context, the source text is used. A numeric unit id is not used as a context.

They keep their source text as the value. The line is still written.

No. A plural entry keeps only its first form.

Notes become comments in the strings file. Translator comments and source references are dropped.

More conversions.Other ways in and out of XLIFF2 and STRINGS.