LLM-assisted Bethesda Game Studios plugin translation pipeline for xTranslator and ESP-ESM Translator.
Project description
bgs-translator
bgs-translator is an LLM-driven sister tool for xTranslator and ESP-ESM Translator. It reads Bethesda plugin translatable strings, runs them through an LLM batch pipeline with glossary and protected-span handling, and emits .sst files (or ESP-ESM XML for TES3/Morrowind) that the downstream translator GUI can finalize.
Install
Published package, once available:
pipx install bgs-translator
Development checkout:
cd D:\awesome-bgs-mod-master\tools\bgs-translator
pipx install -e .
Confirm the install:
xtl version
Quick start
This sequence creates a small project, plans one LLM batch, rehearses the run, and exports SST output:
$env:BGS_MODDING_SUPERPOWERS_HOME = "$env:TEMP\bgs-translator-demo"
xtl project init demo-mod --plugin "D:\path\to\MyMod.esp" --game SkyrimSE --target-lang zh-cn
xtl batch plan demo-mod `
--register names `
--target-lang zh-cn `
--profile my-openrouter-profile `
--sig WEAP `
--field FULL `
--game-lore "Skyrim fantasy setting" `
--mod-name "MyMod" `
--mod-theme "Adds a small set of weapons." `
--style "Concise Simplified Chinese item names."
xtl batch run demo-mod --plan <plan_id> --dry-run --wait
xtl project export demo-mod --format sst
Open the emitted SST file in xTranslator or ESP-ESM Translator, review, then use that GUI's Finalize workflow to produce the game-ready translation files.
Commands
Run xtl --help or any subcommand's --help for the current option surface.
xtl version— JSON envelope with version and capability flags.xtl config ...— global settings, resolved paths, and KB cache migration.xtl profile ...— provider profiles by environment-variable key reference.xtl project init|export— project creation and dictionary export.xtl inspect plugin|signatures|entries|entry|orphans— parser and memory inspection.xtl batch plan|run|status|cancel|logs— batch planning, execution, status, cancellation, and logs.xtl edit entry|bulk|status|revert— manual translation-memory edits.xtl validate project|sst— project and SST validation.xtl gui— browser control panel.
GUI
Launch the browser control panel with:
xtl gui
The panel is for configuration and monitoring: AI service accounts, prompt preview, batch progress, cancellation, glossary controls, and export checks. It uses the amber/green/mono terminal theme in a local browser page. Billing is not estimated in the GUI; use the provider dashboard for real usage and cost.
xtl batch run starts a background worker and returns a run_id immediately.
Poll with xtl batch status <run_id>, or pass --wait for foreground smoke tests.
For local development, restart the browser GUI with the reusable PowerShell harness. It stops the stale GUI PID or port owner, starts the correct web module entry point, and waits for /healthz:
powershell -ExecutionPolicy Bypass -File .\scripts\restart-web-gui.ps1 -Port 7847
The browser panel is the only supported GUI:
xtl gui
Documentation
User guides:
D:\awesome-bgs-mod-master\tools\bgs-translator\USER-GUIDE.zh-cn.md
D:\awesome-bgs-mod-master\tools\bgs-translator\USER-GUIDE.en.md
The product requirements and chunk plans live in:
D:\awesome-bgs-mod-master\docs\plans\translator-tool\
Start with 00-overview.md; AMENDMENTS.md overrides earlier PRD notes where implementation spikes found corrections.
Status
Alpha / release-candidate state. It is ship-ready for personal use and integration testing, with community contribution welcome before a wider v1.0 release.
Known release gates include bgs-kb localization pack publishing, manual xTranslator GUI verification, and continued hardening around Morrowind ESP-ESM XML interoperability.
License
MIT. Authored by BB-84C as part of bgs-modding-superpowers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bgs_translator-0.9.0rc1.tar.gz.
File metadata
- Download URL: bgs_translator-0.9.0rc1.tar.gz
- Upload date:
- Size: 245.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d94f09d4f971f2d5e1ad36174d6bca5bae98ab6f8a1605b800fb8ff3ce8b1a5
|
|
| MD5 |
3fae2caac0bbe07cb288d27c93ffa695
|
|
| BLAKE2b-256 |
e0df5e1fcdb7b3c88604325a395ac6239dec808b8ba79472b00831010ea7ea33
|
File details
Details for the file bgs_translator-0.9.0rc1-py3-none-any.whl.
File metadata
- Download URL: bgs_translator-0.9.0rc1-py3-none-any.whl
- Upload date:
- Size: 237.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1ff76d7b7052e3d31b4127002a1c9d0956618407d3c7ff8417997e599e29299
|
|
| MD5 |
9925531dff0fd90cd98b56b9725d76e2
|
|
| BLAKE2b-256 |
dc777e05e2ee2a39a4058e215baee3b3496c1479917ab4111496cac0af2e251d
|