Translation

QName: f:translation

Indicates this node contains the translated content of a "master node".

The master node is the original node. This feature is applied to the node which contains the translation.

Note: This node will be pointed to from the master node via an a:has_translation association. The a:has_translation association contains the locale and edition as properties.

Configuration

<thead>
    <tr>
        <th>Property</th>
        <th>Type</th>
        <th>Default</th>
        <th nowrap>Read-Only</th>
        <th>Description</th>
    </tr>
</thead>
<tbody>
    <tr>
        <td>master-node-id</td>
        <td>text</td>
        <td></td>
        <td></td>
        <td>
            The node ID of the node that holds the master content.
        </td>
    </tr>
    <tr>
        <td>locale</td>
        <td>text</td>
        <td></td>
        <td></td>
        <td>
            The locale key.
        </td>
    </tr>
    <tr>
        <td>edition</td>
        <td>text</td>
        <td></td>
        <td></td>
        <td>
            The edition of the translated value.
        </td>
    </tr>
</tbody>

Translation Example

Here is a master node for an article. Note that it has the f:multilingual feature indicating that the master node supports localization.

{
    "_doc": "GUID1",
    "title": "My Article",
    "_features": {
        "f:multilingual": {
        }
    }
}

The master node has a:has_translation association between it and a localized node in the Chinese language. The locale we're using is zh-CN. The translation node looks like this:

{
    "title": "我的文章",
    "_features": {
        "f:translation": {
            "master-node-id": "GUID1",
            "locale": "zh-CN",
            "edition": "1.0"
        }
    }
}