# Translation Configuration

## Translation Configuration XML base

```
<TranslationConfiguration>
    <EntityTypes>
        <!-- EntityType elements -->
    </EntityTypes>
    <LinkTypes>
        <!-- LinkType elements -->
    </LinkTypes>
    <Languages>
        <!-- Language elements -->
    </Languages>
</TranslationConfiguration>
```

## 3.2.2 -> 3.3 - Upgrade example

Settings that will be removed and replaced by XML configuration, with an example value:

* childLinkTypes / ChildLinkTypes
  * `TranslationJobProduct,ProductItems`
* entityStatusFields / TranslateEntityStatusFields
  * `trProductEntityStatus,trItemEntityStatus`
* languageConfiguration / LanguageConfiguration
  * ```
    <Languages>
      <Language key="engb" lionbridgeCode="en-gb" inRiverCode="en" />
      <Language key="daDK" lionbridgeCode="da-DK" inRiverCode="da" />
      <Language key="svSE" lionbridgeCode="sv-SE" inRiverCode="sv" />
      <Language key="nbNO" lionbridgeCode="nb-NO" inRiverCode="no" />
    </Languages>
    ```

### Converted to XML based on settings

```
<TranslationConfiguration>
    <EntityTypes>
        <EntityType Id="Product">
            <!-- <InTranslationFieldType Id="trProductInTranslation" /> --> <!-- This fields will need to be created manually -->
            <!-- <TranslatedFieldType Id="trProductTranslated" /> --> <!-- This fields will need to be created manually -->
            <!-- <TranslationInfoFieldType Id="trProductTranslationStatus" /> --> <!-- This fields will need to be created manually -->
        </EntityType>
        <EntityType Id="Item">
            <!-- <InTranslationFieldType Id="trItemInTranslation" /> --> <!-- This fields will need to be created manually -->
            <!-- <TranslatedFieldType Id="trItemTranslated" /> --> <!-- This fields will need to be created manually -->
            <!-- <TranslationInfoFieldType Id="trItemTranslationStatus" /> --> <!-- This fields will need to be created manually -->
        </EntityType>
    </EntityTypes>
    <LinkTypes>
        <LinkType Id="TranslationJobProduct" />
        <LinkType Id="ProductItems" />
    </LinkTypes>
    <Languages>
            <Language key="engb" lionbridgeCode="en-gb" inRiverCode="en" />
            <Language key="daDK" lionbridgeCode="da-DK" inRiverCode="da" />
            <Language key="svSE" lionbridgeCode="sv-SE" inRiverCode="sv" />
            <Language key="nbNO" lionbridgeCode="nb-NO" inRiverCode="no" />
    </Languages>
</TranslationConfiguration>
```

## XML element details

#### `<TranslationConfiguration>` element

Contains translation configuration data.

**Properties**

| Name        | Required | Property type | Value type |
| ----------- | -------- | ------------- | ---------- |
| EntityTypes | Yes      | Element       | XML        |
| LinkTypes   | Yes      | Element       | XML        |
| Languages   | Yes      | Element       | XML        |

#### `<EntityTypes>`element

Contains information about entity types that can be translatable.

**Properties**

| Name       | Required | Property type | Value type |
| ---------- | -------- | ------------- | ---------- |
| EntityType | Yes      | Element       | XML        |

#### `<EntityType>`element

Contains information about an entity type that should be translatable

**Properties**

| Name                     | Required | Property type | Value type |
| ------------------------ | -------- | ------------- | ---------- |
| Id                       | Yes      | Attribute     | string     |
| InTranslationFieldType   | Yes      | Element       | XML        |
| TranslatedFieldType      | Yes      | Element       | XML        |
| TranslationInfoFieldType | Yes      | Element       | XML        |

**Id**

The entity type id of the translatable entity type

**\<InTranslationFieldType>**

**Properties**

| Name | Required | Property type | Value type |
| ---- | -------- | ------------- | ---------- |
| Id   | Yes      | Attribute     | string     |

**Id**

The field type id of the "In Translation" status field.

**\<TranslatedFieldType>element**

**Properties**

| Name | Required | Property type | Value type |
| ---- | -------- | ------------- | ---------- |
| Id   | Yes      | Attribute     | string     |

**Id**

The field type id of the "Translated" status field.

**TranslationInfoFieldTypeelement**

**Properties**

| Name | Required | Property type | Value type |
| ---- | -------- | ------------- | ---------- |
| Id   | Yes      | Attribute     | string     |

**Id**

The field type id of the field that the connector uses to store information about what has been sent for translation for a given entity.

#### `<LinkTypes>`element

Link types the connector can use to discover translatable entities.

**Properties**

| Name     | Required | Property type | Value type |
| -------- | -------- | ------------- | ---------- |
| LinkType | Yes      | Element       | XML        |

#### `<LinkType>`element

Link type the connector can use to discover translatable entities.

**Properties**

| Name | Required | Property type | Value type |
| ---- | -------- | ------------- | ---------- |
| Id   | Yes      | Attribute     | string     |

**Id**

Link type id the connector can use to discover translatable entities.

#### `<Languages>`element

Language information, more information about how to configure this can be found [here](/inriver-translation-connector/language-configuration.md).

**Properties**

| Name     | Required | Property type | Value type |
| -------- | -------- | ------------- | ---------- |
| Language | Yes      | Element       | XML        |

#### `<Language>`element

Information about a single language.

**Properties**

| Name           | Required | Property type | Value type |
| -------------- | -------- | ------------- | ---------- |
| key            | Yes      | Attribute     | string     |
| lionbridgeCode | Yes      | Attribute     | string     |
| inRiverCode    | Yes      | Attribute     | string     |

**key**

Unique identifier for the language.

**lionbridgeCode**

Lionbridge language code for this language.

**inRiverCode**

inRiver language code for this language.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lionbridge.gitbook.io/inriver-translation-connector/translation-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
