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

    Interface DocumentTranslationApplyToSelector

    Configuration selector for applying translation to specific placeholders or message roles.

    interface DocumentTranslationApplyToSelector {
        category: TranslationApplyToCategory;
        items: string[];
        sourceLanguage?: string;
    }
    Index

    Properties

    Category to apply translation to.

    items: string[]

    List of placeholders or roles to apply translation to.

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

    Language of the text to be translated.

    "de-DE"
    

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