This package contains art, text, or software code produced using generative AI.
This module acts as a "Prompt Engineer" bridge to external Large Language Models (LLMs) such as Google Gemini, ChatGPT, and Claude. It analyzes internal Journal data to construct optimized translation prompts. The user must manually copy these prompts to the external service and manually paste the result back into Foundry. No content is generated autonomously or applied to the world without explicit user interaction and review.
Phils Journal Translator allows you to translate entire Journals in Foundry VTT using modern AI (Google Gemini, ChatGPT, Claude, Copilot, Perplexity).
The core feature: You don't need expensive API keys. The module acts as an intelligent "Prompt Engineer". It prepares the text from your Journal pages, creates the perfect prompt for the AI, and you simply copy it into the chat window of your favorite free AI service.
Key Features:
-
No API Costs: Works with the free web versions of Gemini, ChatGPT, and others.
-
Batch Translation: Translate multiple pages at once. The module manages batch sizes to prevent prompt length limits.
-
Glossary Support: Automatically generates and maintains a glossary of names and terms to ensure consistent translation across different pages and chapters.
-
Smart Paste: Automatically finds and extracts the JSON code block from the AI response, filtering out conversational text.
-
Context-Aware: Preserves HTML formatting, UUID links, and document structure safely.
Usage:
-
Open the Journal Directory and click the "AI Translation Assistant" button.
-
Select the Journal and specific Pages you want to translate.
-
Click "Copy Prompt" to get the optimized instruction.
-
Paste the prompt into your AI service, copy the full response, and paste it back into Foundry to apply updates.