📝GameLocalizer

Table to work with game localization.

Localization tokens are stored in resource/localization folder in pak01_dir.vpk

Find(token: string): string

Name
Type
Description

token

string

should be in format #token

Returns localized string by token or returns empty string if token not found.

Example

GameLocalizer.Find("#DOTA_AutocastAbility5") -- Autocast Ability Ultimate

FindAbility(ability_name: string): string

Name
Type
Description

ability_name

string

Returns localized string by ability name or returns empty string if ability not found.

Example

GameLocalizer.FindAbility("antimage_mana_void") -- Mana Void

FindItem(item_name: string): string

Name
Type
Description

item_name

string

Returns localized string by item name or returns empty string if item not found.

Example

GameLocalizer.FindItem("item_blink") -- Blink Dagger
GameLocalizer.FindItem("item_recipe_arcane_blink") -- Recipe: Arcane Blink

FindNPC(unit_name: string): string

Name
Type
Description

unit_name

string

Returns localized string by unit name or returns empty string if unit not found.

Example

GameLocalizer.FindNPC("npc_dota_hero_necrolyte") -- Necrophos

Last updated