# Type Alias SAPDocumentTranslationApplyToSelector

This selector allows you to define the scope of translation, such as specific placeholders or messages with specific roles. For example, `{"category": "placeholders", "items": ["user_input"], "source_language": "de-DE"}` targets the value of "user_input" in `placeholder_values` specified in the request payload; and considers the value to be in German.

type SAPDocumentTranslationApplyToSelector = {
category: "placeholders" | "template_roles";
items: string[];
source_language?: string;
}

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

##### Index

### Properties

category
items
source_language?

## Properties

### category

category: "placeholders" | "template_roles"

Category to apply translation to.

- Defined in packages/prompt-registry/dist/client/prompt-registry/schema/sap-document-translation-apply-to-selector.d.ts:9

### items

items: string[]

List of placeholders or roles to apply translation to

#### Example

    [
      "groundingInput",
      "inputContext"
    ]

- Defined in packages/prompt-registry/dist/client/prompt-registry/schema/sap-document-translation-apply-to-selector.d.ts:17

### `Optional` source_language

source_language?: string

Language of the text to be translated.

#### Example

    "de-DE"

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-apply-to-selector.d.ts:22