docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IXliffDocument

    The root element of an XLIFF document is <xliff>. It contains a collection of <file> elements. Typically, each <file> element contains a set of <unit> elements that contain the text to be translated in the <source> child of one or more <segment> elements. Translations are stored in the <target> child of each <segment> element.

    Namespace: UnityEditor.Localization.Plugins.XLIFF.Common
    Assembly: Unity.Localization.Editor.dll
    Syntax
    public interface IXliffDocument

    Properties

    Name Description
    FileCount

    The number of files in the document.

    SourceLanguage

    The language that was translated from to TargetLanguage

    TargetLanguage

    The language that was translated to from SourceLanguage.

    Version

    The XLIFF version.

    Methods

    Name Description
    AddFile(IFile)

    Adds a new file to the document.

    AddNewFile()

    Add a new files to the document and returns it.

    GetFile(int)

    Returns the file for the requested index.

    RemoveFile(IFile)

    Remove the files from the document.

    Serialize(Stream)

    Serialize the document into XLIFF.

    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)