# 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>
```


---

# 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/criteria-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.
