Civ6 localization manager
Skill YUehai231/Civ6ModAgent/.agents/skills/civ6_localization_manager
A test project aiming to enable AI Agents to generate all code files for a Civ 6 mod. ModBuddy & game knowledge still required. Special thanks to Hemmelfort.
npx -y skills add YUehai231/Civ6ModAgent --skill civ6_localization_managerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Scan project XML/SQL files and synchronize localized text tags (LOC_). Trigger this skill when the user asks to manage, update, extract, or translate text, descriptions, and labels inside a mod.
SKILL.md
1.8 KB, as published. Nobody here has run it
Civilization VI Localized Text Manager
This skill scans the project workspace XML and SQL database files, automatically extracts all localized text keys starting with LOC_, and synchronizes them with the project's translation catalog.
Files in this Skill
- manage_localization.py: Python script to scan mod files, compile translation dicts, and update
LocalizedText.xml.
Usage
You can invoke the localization manager using Python on the user's system:
& "C:\Program Files\NVIDIA Corporation\Nsight Compute 2025.4.0\host\target-windows-x64\python\bin\python.exe" "d:\Civilization_VI_mod\Civ-6-Documentation-main\.agents\skills\civ6_localization_manager\scripts\manage_localization.py" --project-dir "/path/to/project" --language "en_US"
Options
--project-dir: (Required) Path to project directory containing XML/SQL mod files.--language: (Default: en_US) Language code to register new tags under (e.g.en_US,zh_CN,ru_RU).--out-filename: (Default: LocalizedText.xml) Filename for the output localized text catalog.
Features
- Auto-Scanning: Reads all database XML and SQL scripts, parsing out quoted strings starting with
LOC_. - Key Preservation: Preserves any existing tags and their translation text already defined in
LocalizedText.xml. - Smart Guessing: For any newly added keys, the script automatically parses the key name to guess a clean English label (e.g.,
LOC_UNIT_SCOIA_TAEL_NAME->Scoia Tael).