This class is available under a global localization variable.
More...
|
| static void | SetTerm (string languageCode, string term, string translation) |
| | Add or modify a localization term.
|
| |
|
static string | GetTranslationWithParameters (string term, params(string Key, string Value)[] parameters) |
| | Translate a term and substitute its {[PLACEHOLDER]} parameters into the translation. Falls back to the raw term when no translation exists yet, so a missing entry stays visible in the UI instead of rendering an empty string.
|
| |
This class is available under a global localization variable.
◆ SetTerm()
| static void SetTerm |
( |
string | languageCode, |
|
|
string | term, |
|
|
string | translation ) |
|
inlinestatic |
Add or modify a localization term.
- Parameters
-
| languageCode | Language code, e.g. "en" |
| term | Name of the localization term, used to identify it |
| translation | Translation, possibly containing some value placeholders, formatted as {[PLACEHOLDER_NAME]} |