Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Metadata

Release files for bgs-translator 0.9.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bgs-translator 0.9.0rc1
File Size Uploaded Provenance
bgs_translator-0.9.0rc1.tar.gz 245.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bgs-translator 0.9.0rc1
File Interpreter ABI Platform
bgs_translator-0.9.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 483.1 kB

Release files / bgs_translator-0.9.0rc1.tar.gz

Download URL bgs_translator-0.9.0rc1.tar.gz
Size 245.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7d94f09d4f971f2d5e1ad36174d6bca5bae98ab6f8a1605b800fb8ff3ce8b1a5
BLAKE2b-256 checksum
How to use checksums
e0df5e1fcdb7b3c88604325a395ac6239dec808b8ba79472b00831010ea7ea33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / bgs_translator-0.9.0rc1-py3-none-any.whl

Download URL bgs_translator-0.9.0rc1-py3-none-any.whl
Size 237.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1ff76d7b7052e3d31b4127002a1c9d0956618407d3c7ff8417997e599e29299
BLAKE2b-256 checksum
How to use checksums
dc777e05e2ee2a39a4058e215baee3b3496c1479917ab4111496cac0af2e251d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for bgs-translator 0.9.0rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page