-
-
Notifications
You must be signed in to change notification settings - Fork 8
CLI Usage
Lord0fTurk edited this page Feb 6, 2026
·
4 revisions
The RenLocalizer CLI is designed for automation, remote server usage, or advanced batch processing.
Launch the CLI with the module syntax:
python -m src.cli_main translate -iThis opens the Interactive Mode wizard.
For automation, pass arguments directly.
python -m src.cli_main translate "/path/to/game" --target-lang es --engine google --mode auto| Argument | Description |
|---|---|
--target-lang |
Code of the target language (e.g., tr, es, ru). |
--engine |
google, deepl, openai, gemini, local_llm, pseudo. |
--mode |
auto (Detect), full (Extract + Translate), translate (Only translate). |
--deep-scan |
Enable AST-based deep scanning. |
--verbose |
Show detailed logging output. |
| Command | Description |
|---|---|
health-check <path> |
Run static analysis on a project directory. |
font-check <path> --lang tr |
Check font compatibility for a target language. |
pseudo <path> |
Generate pseudo-localized text for UI overflow testing. |
fuzzy <old_tl> <new_tl> |
Smart update: Recover translations using fuzzy matching. |
extract-glossary <path> |
Extract potential glossary terms from project files. |
python -m src.cli_main health-check "C:\Games\MyRenPyGame"-
Auto Mode (
--mode auto): Recommended. Detects whether RPA extraction is needed. -
Full Mode (
--mode full): For packaged games. Extracts RPA archives, normalizes encodings, and translates. -
Translate Mode (
--mode translate): For already unpacked projects or existingtl/folders.
The CLI version is lightweight and doesn't require a GUI. You can run it on a Linux VPS or in a GitHub Action:
# Example script for a cloud server
python -m src.cli_main translate "./GameProject" \
--target-lang tr \
--engine gemini \
--mode auto \
--deep-scan \
--verboseIn case of failure, the CLI writes a detailed diagnostic report to error_output.txt in the project root. Check this file to see which file or line caused the issue.
- Advanced-Parsing
- RPA-Extraction
- Glossary-Management
- External-Translation-Memory — (NEW) Reuse translations across games
- Technical-Filtering
- Proxy-and-Rate-Limits
- Web-Google-Translate-Guide