Module:Lang/doc

Revision as of 04:30, 22 September 2024 by Sur (talk | contribs) (initial)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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