- Home
- Skills
- Translation & Localization
- Loc Translate — Safe Game-Mod & App Translation
More screenshots
Works with the AI Agents you already use
Loc Translate — Safe Game-Mod & App Translation
Safely translate game and app localization files using token protection and automated verification.
Free
Loc Translate — Safe Game-Mod & App Translation
Example session with this skill installed
Translate l10n/work/batch-01.json into Spanish. Use the smapi profile for Stardew mod compatibility. Preserve all placeholders.
- Read your context and instructions
- Compiled the loc translate
I have translated 40 items from batch-01.json into Spanish. All ⟦n⟧ placeholders were verified and preserved to ensure the mod scripts do not crash. Character voices for Javi and Robin were kept consistent using the provided speaker context.
Translation Batch: batch-01.out.json
{
"Strings\\StringsFromMaps.cs.1010": "¡Hola ⟦0⟧! ¿Has visto a ⟦1⟧ hoy?",
"Strings\\StringsFromMaps.cs.1012": "Me pregunto si ⟦0⟧ tiene alguna ⟦1⟧ en su tienda.",
"Data\\Events\\Farm.json.1": "Realmente aprecio tu ayuda, ⟦0⟧. #$b#¡Esta granja se ve genial!",
"Data\\Events\\Farm.json.2": "$h ⟦0⟧, ¡qué sorpresa verte aquí!",
"UI\\Button_Submit": "Enviar",
"UI\\Tooltip_Save": "Guardar progreso (⟦0⟧)",
"Characters\\Dialogue\\Javi.001": "No puedo creer que ⟦0⟧ haya olvidado la ⟦1⟧ de nuevo. @, ¿qué piensas?",
"Characters\\Dialogue\\Robin.001": "La carpintería es un trabajo duro, pero ⟦0⟧ lo hace más fácil."
}
Next steps
- Run
python3 scripts/loctx.py applyto verify these translations and write them toi18n/es.json. - Check
batch-01-retry.jsonfor any strings rejected due to placeholder mismatches. - Use
loc-qato generate a report on character limits and glyph compatibility for the Stardew font.
Connects securely to your tools. The creator never sees your data.
About this skill
Localization is a high-risk task where a single missing bracket or reordered token can crash a game or break a web app. Manual translation often destroys original file formatting, strips translator comments, or misses context-sensitive variables. This skill provides a structured, fail-safe pipeline for translating game mods and application locale files without compromising technical integrity.
What it does
- Token protection replaces complex variables like
{{name}},{{0}}, and dialogue commands with numbered placeholders to prevent corruption. - Batch processing handles translation in manageable chunks while maintaining consistent character voice and terminology.
- Glossary enforcement automatically applies pre-defined terms and identifies inconsistencies for manual review.
- Context-aware translation provides previous/next string context and speaker identification to ensure accuracy.
- Non-destructive writing applies translations back to target files while preserving original comments, key order, and indentation.
How it works
- Initialize the project to detect layouts and create a configuration that defines token patterns and target paths.
- Prepare batches of untranslated or updated strings, extracting source text and metadata into temporary work files.
- Translate items by mapping the source text to the target language, strictly maintaining the position and format of all placeholders.
- Apply translations using the verification script to validate tokens and write them safely into the localized files.
Frameworks & tools
Specifically built for SMAPI (Stardew Valley) i18n, Content Patcher, and standard JSON/JSONC locale files. It uses a Python-based utility loctx.py for scanning, tokenization, and safe-apply operations.
Why this beats prompting it yourself
Prompting a raw JSON file usually results in the LLM hallucinating bracket placements or omitting "boring" technical tokens, leading to broken builds. This skill locks variables behind sacred placeholders that the script validates before any file is ever modified.
Use cases
- Translating a large Stardew Valley mod while preserving complex dialogue commands and narration tags.
- Localizing a web application's locale folder into multiple languages without breaking HTML entities or string interpolation.
- Updating an existing translation where new keys were added in the latest version of the source software.
- Enforcing a unified glossary across thousands of keys to maintain brand or game-world consistency.
Known limitations
Requires Python 3 to run the included helper scripts. It is designed for structured JSON/i18n files and will not work on raw source code or unstructured text documents.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Translation & Localization.
Requires Python 3 for the helper script. Optimized for JSON/i18n formats; does not support raw PO/MO or unstructured text. Placeholder order must be strictly maintained for dialogue safety.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 21 days ago
- Free with an Agensi account