aigra_translate_diagram_prompts: Translate/localize AIGRA diagram prompts using an LLM

View source: R/aigra-diagram-translation.R

aigra_translate_diagram_promptsR Documentation

Translate/localize AIGRA diagram prompts using an LLM

Description

This rewrites diagram prompts into the target language before image generation. Scientific symbols and units are preserved.

Usage

aigra_translate_diagram_prompts(
  result,
  target_language = "English",
  provider = "gemini",
  model = "gemini-3.1-pro-preview"
)

Arguments

result

A data frame returned by AIGRA.

target_language

Target language for translated diagram prompts.

provider

Text LLM provider.

model

Text LLM model.

Value

Updated result data frame.


AIGRA documentation built on July 10, 2026, 5:06 p.m.