// Management · RimWorld Mod
Universal Translation Framework
Universal Translation Framework A runtime string translation framework for RimWorld mods that enables dynamic replacement of hardcoded strings through IL code transpilation.
Universal Translation Framework
A runtime string translation framework for RimWorld mods that enables dynamic replacement of hardcoded strings through IL code transpilation.
Use Cases
- Mods with hardcoded strings and no translation interface
Usage
- Subscribe to this framework
- Create XML files containing "StringTranslation" in the target mod's Patches directory
- Restart the game to apply translations
Configuration Format
TargetClassName
TargetMethodName
Original text Translated text
Target Identification
Use dnSpy decompiler to analyze mod DLL files and locate the classes and methods that need translation.
Technical Implementation
Based on Harmony IL code transpilation for runtime dynamic string constant replacement.
Documentation: GitHub Repository