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

    Function extractAllButtonsForTranslation

    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:

    • Extract all buttons from a file for LLM translation.

      This is a convenience method that processors can use to extract all translatable buttons with their symbols in a format-agnostic way.

      Parameters

      • buttons: any[]

        Array of button objects from any AAC format

      • OptionalcontextFn: (button: any) => { pageId?: string; pageName?: string }

        Optional function to provide page context for each button

      Returns ButtonForTranslation[]

      Array of normalized button data ready for LLM translation