Repository navigation
LUA API v2 Game Localization Manager
Aranaktu edited this page Oct 1, 2026
·
1 revision
Allows you to translate in-game strings from eng_us.db (or your in-game language loc db) in real time without restarting the game. Changes will only persist until you restart the game.
This class doesn't have any fields.
Set new or edit existing string
Declaration
void GameLocalizationManager:SetString(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Variable to change |
| string | value | New value |
Returns
Doesn't return anything
Example
-- Change the name of "Milano FC" club team to "AC Milan"
LE.game_localization_manager:SetString("TeamName_Abbr3_131681", "MIL")
LE.game_localization_manager:SetString("TeamName_Abbr10_131681", "AC Milan")
LE.game_localization_manager:SetString("TeamName_Abbr15_131681", "AC Milan")
LE.game_localization_manager:SetString("TeamName_131681", "AC Milan")
Get translated string
Declaration
string GameLocalizationManager:GetString(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | String to translate |
Returns
Translated string
Example
print(LE.game_localization_manager:GetString("TrophyName_Abbr15_210"))
Coppa Italia
Support this project on patreon.com/xAranaktu