|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inline |
Creates a new LocalizedText with the supplied arguments formatted into the value (via M:System.String.Format(System.String,System.Object[]))
Will automatically update to re-format the string with cached args when language changes.
The resulting LocalizedText should be stored statically. Should not be used to create 'throwaway' LocalizedText instances.
Use M:Terraria.Localization.LocalizedText.Format(System.Object[]) instead for repeated on-demand formatting with different args.
The Localization Guideteaches more about using placeholders in localization.
| args | The substitution args |
Definition at line 246 of file LocalizedText.cs.
References Terraria.Localization.LanguageManager.Instance, and Terraria.Localization.LocalizedText.Key.