Struct TranslationServerSingleton
Server that manages all translations.
struct TranslationServerSingleton
;
Translations can be set to it and removed from it.
Methods
Name | Description |
---|---|
addTranslation
|
Adds a Translation resource.
|
clear
|
Clears the server from all translations. |
getLoadedLocales
|
Returns an Array of all loaded locales of the game. |
getLocale
|
Returns the current locale of the game. |
getLocaleName
|
Returns a locale's language and its variant (e.g. "en_US" would return "English (United States)" ).
|
removeTranslation
|
Removes the given translation from the server. |
setLocale
|
Sets the locale of the game. |
translate
|
Returns the current locale's translation for the given message (key). |