Skip to content

Locon213/TranslatorHoi4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

149 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ TranslatorHoi4

AI-Powered Localization Translator for Paradox Games

Build Status Release Downloads License Python

Platform: Windows Platform: Linux Platform: macOS


Screenshot


โœจ Features

๐ŸŽฏ Game Support

  • Hearts of Iron IV โ€” fully optimized
  • Crusader Kings III
  • Europa Universalis IV
  • Stellaris
  • Victoria 3
  • Imperator: Rome
  • Custom mod themes โ€” My Little Pony, Cold War, Fantasy, etc.
  • Works with any Paradox game using YAML localization

๐Ÿค– AI Providers

  • OpenAI (GPT-5.4)
  • Anthropic (Claude family)
  • Google (Gemini 3 Pro/Flash)
  • NVIDIA NIM โ€” free & fast โญ
  • Groq, Together.ai, Mistral
  • DeepL, Ollama (local), G4F

๐ŸŒ Cross-Platform

  • Windows โ€” x64, ARM64
  • Linux โ€” x64, ARM64, DEB, RPM, AppImage
  • macOS โ€” Intel, Apple Silicon
  • Automatic Wayland/X11 fallback on Linux
  • Native performance with Nuitka compilation

๐Ÿ› ๏ธ Built for Modders

  • Modern Fluent Design UI
  • Game-specific translation profiles โ€” optimized prompts for each Paradox game
  • Custom mod theme support โ€” tell AI your mod's theme for better vocabulary
  • Glossary support for consistent translations
  • Batch translation with caching
  • Built-in file review & editing
  • Syntax validation for Paradox format

๐Ÿ“ฅ Installation

Windows

Method Instructions
๐Ÿ’พ Installer (Recommended) Download TranslatorHoi4_Setup_*.exe โ†’ Run โ†’ Launch from Start Menu
๐Ÿ“ฆ Portable Download TranslatorHoi4_Windows_*.zip โ†’ Extract โ†’ Run .exe

Linux

Method Command
๐Ÿ“ฆ DEB (Debian/Ubuntu) sudo dpkg -i translatorhoi4_*.deb && sudo apt-get install -f
๐Ÿ“ฆ RPM (Fedora/openSUSE) sudo rpm -i translatorhoi4-*.rpm
๐Ÿ“ฆ AppImage chmod +x TranslatorHoi4-*.AppImage && ./TranslatorHoi4-*.AppImage
๐Ÿ“ฆ Portable tar -xzf TranslatorHoi4_Linux_*.tar.gz && ./TranslatorHoi4/TranslatorHoi4

Dependencies (if not using packages or when running the unpacked portable build):

# Debian/Ubuntu
sudo apt-get install libegl1 libopengl0 libgl1 libwayland-client0 \
  libwayland-cursor0 libwayland-egl1 libxkbcommon0 libxkbcommon-x11-0 \
  libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
  libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xinerama0 \
  libdbus-1-3 libpulse0 libxrender1 libxi6 libxrandr2

# Fedora
sudo dnf install libglvnd-glx libwayland-client libwayland-cursor \
  libwayland-egl libxkbcommon libxkbcommon-x11 libXcursor libXrandr \
  libXi libXrender libxcb dbus-libs pulseaudio-libs

Wayland/X11 note: on Linux the app now prefers Wayland when launched inside a Wayland session and falls back to X11/XCB automatically. On X11 sessions it does the reverse, so the same build works on both stacks.

macOS

  1. Download TranslatorHoi4_macOS_*.dmg
  2. Open DMG file
  3. Drag TranslatorHoi4.app to Applications
  4. First launch: Right-click โ†’ Open (bypass Gatekeeper)

๐Ÿงช From Source

git clone https://github.com/Locon213/TranslatorHoi4.git
cd TranslatorHoi4
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python -m translatorhoi4

๐Ÿง  Improved AI Translation Prompts

TranslatorHoi4 now uses game-specific translation profiles to deliver higher quality localization:

Supported Games

Game Genre Key Terminology
Hearts of Iron IV WW2 Grand Strategy Military, political, historical
Crusader Kings III Medieval Dynasty Simulator Feudal, dynastic, religious
Europa Universalis IV Early Modern Strategy Colonial, diplomatic, trade
Stellaris Sci-Fi Grand Strategy Space exploration, futuristic
Victoria 3 Industrial Era Strategy Economic, social, industrial
Imperator: Rome Ancient Strategy Classical, Hellenistic, Roman

Custom Mod Themes

Translating a My Little Pony mod for HoI4? A Cold War Modern total conversion? No problem!

Just enter your mod's theme in the Mod Theme field and AI will adapt its vocabulary accordingly:

Game: Hearts of Iron IV
Mod Theme: My Little Pony, Friendship is Magic

AI will use appropriate MLP terminology while preserving game mechanics tokens like $VARS$ and [macros].

What's New in Prompts

  • โœ… 8 critical rules instead of 2 โ€” better protection against AI hallucinations
  • โœ… Game-specific terminology โ€” military terms for HoI4, medieval for CK3, sci-fi for Stellaris
  • โœ… Token preservation โ€” $VARS$, [Scripted.Macros], \n kept intact
  • โœ… Context-aware translation โ€” AI understands the game's genre, style, and period
  • โœ… Mod theme override โ€” custom themes override default game vocabulary when needed

๐Ÿค– Recommended: NVIDIA NIM

Feature Benefit
๐Ÿ’ฐ Completely Free No paid tiers, no credit card required
โšก Ultra Fast Optimized inference infrastructure
๐Ÿ† Quality Models Llama 4, Mixtral, and more
๐Ÿ”’ Official API Stable, reliable, enterprise-grade

Setup in 60 seconds:

  1. Go to build.nvidia.com
  2. Sign in with NVIDIA account
  3. Generate API key
  4. Paste key in TranslatorHoi4 settings โ†’ Start translating!

๐Ÿš€ Quick Start

  1. Launch TranslatorHoi4
  2. Configure AI provider in Settings (โš™๏ธ)
  3. Select source mod folder
  4. Choose target language
  5. Translate!

๐Ÿ“Š All Supported Providers

Click to expand full provider list
Provider Best For Free Tier Speed
NVIDIA NIM Testing & development โœ… Unlimited โšกโšกโšก
Groq Production translation โœ… Generous โšกโšกโšก
Google Gemini General purpose โœ… Limited โšกโšก
Mistral AI European languages โœ… Limited โšกโšก
Together.ai Open-source models โœ… Limited โšกโšก
OpenAI Premium quality โŒ โšกโšก
Anthropic Complex context โŒ โšกโšก
DeepL Professional quality โŒ โšกโšก
Ollama Privacy-focused (local) โœ… Unlimited โšก
G4F Community alternative โœ… Unlimited โšก

๐Ÿ—๏ธ Project Structure

translatorhoi4/
โ”œโ”€โ”€ translator/      # Translation engines & backends
โ”œโ”€โ”€ parsers/         # Paradox file parsers
โ”œโ”€โ”€ ui/              # Modern Fluent UI components
โ”œโ”€โ”€ utils/           # Utilities & helpers
โ””โ”€โ”€ app.py           # Application entry point

๐Ÿ› ๏ธ Building from Source

pip install -r requirements.txt
python build.py      # Output: dist/TranslatorHoi4/

๐Ÿ“œ License

License: MIT


Made with โค๏ธ for Paradox Modding Community

๐Ÿ“ฅ Download Latest โ€ข ๐Ÿ› Report Issue โ€ข ๐Ÿ’ฌ Discussions

About

Cross-platform graphical tool in PySide6 for translating localization files Paradox (HOI4, CK3, EU4, Stellaris) with AI

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages