@willwade/aac-processors
    Preparing search index...

    Function createTranslationPrompt

    Translation Namespace

    LLM-based translation utilities for AAC files with symbol preservation.

    These utilities are used by processor classes. See individual processors for:

    • extractSymbolsForLLM() - method on GridsetProcessor, ObfProcessor, TouchChatProcessor, SnapProcessor
    • processLLMTranslations() - method on GridsetProcessor, ObfProcessor, TouchChatProcessor, SnapProcessor

    Or use the lower-level utilities directly:

    • Create a prompt for LLM translation with symbol preservation.

      This generates a structured prompt that instructs the LLM to translate while preserving symbol-to-word associations.

      Parameters

      • buttons: ButtonForTranslation[]

        Buttons to translate

      • targetLanguage: string

        Target language for translation

      Returns string

      Prompt string for LLM