# Criteria Configuration

**Base XML**

```
<CriteriaConfiguration>
    <BaseCriteria> <!-- This criteria must be met before an entity can be considered for translation -->
        <!-- Criteria elements -->
    </BaseCriteria>
    <SourceLanguages>
        <!-- One or more SourceLanguage elements -->
    </SourceLanguages>
    <TargetLanguages>
        <!-- One or more TargetLanguage elements -->
    </TargetLanguages>
</CriteriaConfiguration>
```

## `<BaseCriteria>` element

Contains a criteria that every translatable entity will need to meet in order to be sent for translation.

### Properties

| Name         | Required | Property type | Value type |
| ------------ | -------- | ------------- | ---------- |
| `<Criteria>` | Yes      | Element       | Criteria   |

#### `<Criteria>`

Criteria element, more information about criterias can be found [here](https://lionbridge.gitbook.io/inriver-translation-connector/criteria-configuration/criterias).

### Example

```
<BaseCriteria>
    <!-- Criteria -->
</BaseCriteria>
```

## `<Criteria>` element

Criteria element, more information about criterias can be found [here](https://lionbridge.gitbook.io/inriver-translation-connector/criteria-configuration/criterias).

## `<SourceLanguages>`

### Properties

| Name               | Required | Property type | Value type     |
| ------------------ | -------- | ------------- | -------------- |
| Id                 | Yes      | Attribute     | string         |
| `<SourceLanguage>` | Yes      | Element       | SourceLanguage |

Contains one or more source language configurations. Translatable entities will choose the top-most language configuration who's criteria is met as its source language.

#### Example

```
<SourceLanguages>
    <SourceLanguage Id="engb"> <!-- Use "engb" as source language if the following criteria is met -->
        <!-- Criteria here -->
    </SourceLanguage>
</SourceLanguages>
```

## `<SourceLanguage>` element

### Properties

| Name         | Required | Property type | Value type |
| ------------ | -------- | ------------- | ---------- |
| Id           | Yes      | Attribute     | string     |
| `<Criteria>` | Yes      | Element       | Criteria   |

#### Id

Language configuration id

#### `<Criteria>`

Criteria element, more information about criterias can be found [here](https://lionbridge.gitbook.io/inriver-translation-connector/criteria-configuration/criterias).

#### Example

```
<SourceLanguage Id="engb"> <!-- Use "engb" as source language if the following criteria is met -->
    <!-- Criteria here -->
</SourceLanguage>
```

## `<TargetLanguages>`

### Properties

| Name               | Required | Property type | Value type     |
| ------------------ | -------- | ------------- | -------------- |
| Id                 | Yes      | Attribute     | string         |
| `<TargetLanguage>` | Yes      | Element       | TargetLanguage |

Contains one or more target language configurations. Translatable entities will choose every language configuration who's criteria is met as target languages.

#### Example

```
<TargetLanguages>
    <TargetLanguage Id="svse"> <!-- Use "svse" as target language if the following criteria is met -->
        <!-- Criteria here -->
    </TargetLanguage>
</TargetLanguages>
```

## `<TargetLanguage>` element

### Properties

| Name         | Required | Property type | Value type |
| ------------ | -------- | ------------- | ---------- |
| Id           | Yes      | Attribute     | string     |
| `<Criteria>` | Yes      | Element       | Criteria   |

#### Id

Language configuration id

#### `<Criteria>`

Criteria element, more information about criterias can be found [here](https://lionbridge.gitbook.io/inriver-translation-connector/criteria-configuration/criterias).

#### Example

```
<TargetLanguage Id="svse"> <!-- Use "svse" as target language if the following criteria is met -->
    <!-- Criteria here-->
</TargetLanguage>
```
