Module:Lang/doc
This is the documentation page for Module:Lang
Overview
overview
Functions
get_string
Localizes a given string to the current language, i.e. Data:Lang_en.json for english
Parameters
- string - String to localize
Examples
From wikitext:
{{#invoke:Lang|get_string|hero_atlas}}
Abrams
{{#invoke:Lang|get_string|CitadelHeroStats_Weapon_Falloff}}
Falloff Range
search_string
Searches for the unlocalized key corresponding to a given english string, then localizes it to the current language
Parameters
- string - English string to search for
Examples
From wikitext:
{{#invoke:Lang|get_string|Abrams}}
Abrams