docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Xliff

    XML Localisation Interchange File Format. The purpose of XLIFF is to store localizable data and carry it from one step of the localization process to the other, while allowing interoperability between and among tools.

    Inheritance
    object
    Xliff
    Namespace: UnityEditor.Localization.Plugins.XLIFF
    Assembly: Unity.Localization.Editor.dll
    Syntax
    public static class Xliff

    Methods

    Name Description
    AddTableToDocument(IXliffDocument, StringTable, StringTable)

    Populate the document with the entries from target using source as the source reference. Note: The source and target tables must be part of the same collection, they must both use the same SharedTableData.

    CreateDocument(LocaleIdentifier, LocaleIdentifier, XliffVersion)

    Creates an empty XLIFF document ready for populating.

    Export(LocaleIdentifier, string, string, XliffVersion, ICollection<StringTableCollection>, ITaskReporter)

    Exports all StringTable in collections as 1 or more XLIFF files where each file represents a single language.

    Export(StringTable, string, XliffVersion, ICollection<StringTable>, ITaskReporter)

    Export the values in tables using sourceLanguage as the source language to one or more XLIFF files.

    ImportDirectory(string, ImportOptions, ITaskReporter)

    Imports all XLIFF files with the extensions xlf or xliff into existing StringTableCollection or new ones if a matching one could not be found.

    ImportDocument(IXliffDocument, ImportOptions, ITaskReporter)

    Imports a single XLIFF document into the project. Attempts to find matching StringTableCollection's, if one could not be found then a new one is created.

    ImportDocumentIntoTable(IXliffDocument, StringTable, ImportNotesBehavior, ITaskReporter)

    Import an XLIFF document into the target table, ignoring TargetLanguage.

    ImportFile(string, ImportOptions, ITaskReporter)

    Imports a single XLIFF file into the project. Attempts to find matching StringTableCollection's, if one could not be found then a new one is created.

    ImportFileIntoCollection(StringTableCollection, string, ImportOptions, ITaskReporter)

    Import the XLIFF file into the collection.

    ImportFileIntoTable(string, StringTable, ImportNotesBehavior, ITaskReporter)

    Import an XLIFF file into the target table, ignoring TargetLanguage.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)