Skip to content

localize

The localize table resolves CS:GO’s internal localization dictionaries directly without JavaScript or Panorama bridges.


Function Parameters Returns Description
localize token: string, params?: table string Callable table: translates token and substitutes %variable% placeholders.
localize.localize token: string, params?: table string Alias of callable table function.
localize.find token: string string Returns raw translation template string without variable substitution.
localize.language (none) string Returns active game language name (e.g. "english", "german", "russian").
  • An unknown token is returned as-is without raising an error.

-- Resolving standard weapon token
local ak_name = localize("#SFUI_WPNHUD_AK47")
print(ak_name) --> "AK-47"
-- Parameterized localization token
local msg = localize("#Chat_SavePlayer", { ["1"] = "Alice", ["2"] = "Bob" })
print(msg)