SAP AI SDK for JavaScript - v2.8.0
    Preparing search index...

    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;
    }
    Index

    Properties

    category: "placeholders" | "template_roles"

    Category to apply translation to.

    items: string[]

    List of placeholders or roles to apply translation to

    [
    "groundingInput",
    "inputContext"
    ]
    source_language?: string

    Language of the text to be translated.

    "de-DE"
    

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