Class Localizer
- Namespace
- McServerLauncher.Localization
- Assembly
- McServerLauncher.dll
Access to the translated texts (Resources/Strings.resx and its languages).
public static class Localizer
- Inheritance
-
Localizer
- Inherited Members
Methods
Format(string, params object?[])
The translated text for key with args filled in, the
same result as string.Format(Get(key), args) but with the template parsed once.
public static string Format(string key, params object?[] args)
Parameters
Returns
Remarks
Formats with the current culture, as Format(string, params object[]) does, so
numbers and dates come out as before. A template whose placeholders do not match
args throws FormatException, also as before.
Get(string)
public static string Get(string key)
Parameters
keystring