Game localization tool
LocaGen
My localization tool that translates game language files into other languages. The Free and PRO desktop editions are written in Python and available on itch.io, and there is a separate web version built with PHP.
- Python
- CustomTkinter
- Nuitka
- PHP
- MySQL
- Gemini API

About the project
What I built and how.
Game text usually lives in JSON language files. LocaGen takes that file, translates only the values without touching the keys, and produces a new file the game can use directly.
The Free and PRO editions are Windows apps I wrote in Python with CustomTkinter, compiled into a single exe with Nuitka. The Free edition translates JSON files into 6 languages with Google Translate. The PRO edition handles JSON, CSV and TXT files in more than 25 languages, and its Smart Glossary makes sure a game's own terms come out right: in an RPG, "Chest" becomes a treasure chest instead of a body part, and "Party" becomes your squad instead of a celebration.
LocaGen PHP is a separate web project. I built it with PHP and MySQL; Gemini 2.5 Flash does the translation and translates game terms the way a player would say them instead of word for word. It has user login, a translation log and an admin panel.
Highlights
- 01
Placeholders stay intact
Placeholders such as {player}, <b>, %s and %d are protected before translation and put back afterwards, so nothing breaks in game.
- 02
Smart Glossary (PRO)
You set your game's own terms: "Defuse Kit" becomes "İmha Kiti" instead of a word-for-word "Çözme Kiti", and "Save" in a menu means saving the game, not rescuing someone.
- 03
JSON, CSV and TXT (PRO)
The PRO edition translates all three file types into more than 25 languages and works with Unity, Unreal Engine, Godot and web projects.
- 04
Web version with Gemini (PHP)
In LocaGen PHP, Gemini 2.5 Flash does the translation; user login, the translation log and the admin panel are built with PHP and MySQL.
- 05
Auto-update
The desktop editions check for a new version on launch and download the update themselves.
- 06
Terminal design
A neon, terminal-style interface with typing animations.
Live demo
Watch the placeholders survive translation.
Pick a game string and a target language to see each step LocaGen takes, and how the same string breaks without it.
01 · Find the placeholders
Welcome back, {player}!
02 · Swap them for markers
Welcome back, [VAR_0]!
03 · Translate; markers stay put
Tekrar hoş geldin, [VAR_0]!
04 · Put the placeholders back
Tekrar hoş geldin, {player}!
Without LocaGen, translated directly
Tekrar hoş geldin, {oyuncu}!
Hi {player}, you earned %d XP and a <i>rare</i> item!
Hi [VAR_0], you earned [VAR_1] XP and a [VAR_2]rare[VAR_3] item!
4 placeholder(s) found. The version with markers is what goes to the translator; when the translation comes back, the markers are swapped back.
Gallery






