Skip to content
HOI4DOC

Formatted Localization

Details

Formatted localization is a concept for generating texts based on a specific token. It can for example, be used to
generate a description of an idea from the ideas token. A formatted localization entry also accepts standard localization keys
and raw localization strings giving the following allowed options:

  • A localization tag.
  • A string (can for example be used to inject things based on the Localization Scope Object if one exists).
  • A formatter and it's associated tag.

Documentation for the existing formatters can be found at Localization formatter.

Example

# Using a  formatter
custom_effect_tooltip = idea_desc|canadian_pacific_railway

# Using a standard loc key
custom_effect_tooltip = WHILE_FOCUSING

# Using a loc string with a localization scope object
custom_effect_tooltip = "[ROOT.GetName]"

Source: Script Concepts Documentation

Name