iOS XLIFF

Extension
.xliff
Import
yes
Export
yes

XLIFF files for iOS are XCODE-generated files that consist of one or more <file> elements. Each <file> element corresponds to a source file or source (such as a database table). <file> contains the source data to be localized and, after translation, the corresponding localized data for one language standard after the translation.

Localizable data is stored in <trans-unit> elements. The <trans-unit> element element contains a <source> element element to store the source text and the <target> element to store the last translated text. The <target> elements are optional.

Important

Exports cannot be made without the default language being set in the project. The values in the reference language go into the <source> tag, and translations go into the <target> tag.

Documentation

Apple documentation

To export to iOS XLIFF, set the default language in the project settings: this format stores both the source and the translation.
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2"
       xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd">
  <file source-language="en" target-language="fr" datatype="plaintext" xml:space="preserve">
    <header>
      <tool tool-id="localizify.com" tool-name="localizify.com"/>
    </header>
    <body>
      <trans-unit id="addTerm">
        <target>Ajouter une traduction</target>
        <source>Add translation</source>
      </trans-unit>
      <trans-unit id="cancel">
        <target>Annuler</target>
        <source>Cancel</source>
      </trans-unit>
      <trans-unit id="confirm">
        <target>Confirmer</target>
        <source>Confirm</source>
      </trans-unit>
      <trans-unit id="enterProjectName">
        <target>Entrez le nom du projet</target>
        <source>Enter project name</source>
      </trans-unit>
      <trans-unit id="helloWorld">
        <target>Bonjour le monde</target>
        <source>Hello World</source>
      </trans-unit>
      <trans-unit id="hi">
        <target>Bonjour</target>
        <source>Hello</source>
      </trans-unit>
      <trans-unit id="selectLanguage">
        <target>Choisir la langue</target>
        <source>Choose language</source>
      </trans-unit>
      <trans-unit id="settings">
        <target>Paramètres</target>
        <source>Settings</source>
      </trans-unit>
    </body>
  </file>
</xliff>