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
| Property | Type | Default | Read-Only | Description |
|---|---|---|---|---|
| master-node-id | text | The node ID of the node that holds the master content. | ||
| locale | text | The locale key. | ||
| edition | text | The edition of the translated value. |
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"
}
}
}