IDML Translator (Mistral & OpenAI)

Upload an .idml file, choose the target language & provider, adjust the prompt & glossary. The script only replaces text inside <Content> nodes under Stories/*.xml.

Upload & Target
If empty, the server environment variable MISTRAL_API_KEY will be used.
If empty, the server environment variable OPENAI_API_KEY will be used.
Prompt & Glossary
Placeholders: Terms from the glossary are protected with markers like [[TERM_1]] before the API call & restored afterwards.

Note: Temperature = 0.2 for more deterministic outputs. Response is forced to JSON.