# Type Alias SAPDocumentTranslationInput

Representation of the 'SAPDocumentTranslationInput' schema.

type SAPDocumentTranslationInput = {
config: {
apply_to?: SAPDocumentTranslationApplyToSelector[];
source_language?: string;
target_language: string;
};
translate_messages_history?: boolean;
type: "sap_document_translation";
}

- Defined in packages/prompt-registry/dist/client/prompt-registry/schema/sap-document-translation-input.d.ts:5

##### Index

### Properties

config
translate_messages_history?
type

## Properties

### config

config: {
apply_to?: SAPDocumentTranslationApplyToSelector[];
source_language?: string;
target_language: string;
}

Configuration for `sap_document_translation` translation provider.

#### Type Declaration

- ##### `Optional` apply_to?: SAPDocumentTranslationApplyToSelector[]

  Min Items: 1.

- ##### `Optional` source_language?: string

  Language of the text to be translated.

  #### Example

      "de-DE"

- ##### target_language: string

  Language to which the text should be translated.

  #### Example

      "en-US"

- Defined in packages/prompt-registry/dist/client/prompt-registry/schema/sap-document-translation-input.d.ts:19

### `Optional` translate_messages_history

translate_messages_history?: boolean

If true, the messages history will be translated as well. Default: true.

- Defined in packages/prompt-registry/dist/client/prompt-registry/schema/sap-document-translation-input.d.ts:15

### type

type: "sap_document_translation"

Type of document translation provider

#### Example

    "sap_document_translation"

Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

- Defined in packages/prompt-registry/dist/client/prompt-registry/schema/sap-document-translation-input.d.ts:10