TranslationServer Class |
Server that manages all translations. Translations can be set to it and removed from it.
Namespace: Godot
public static class TranslationServer
The TranslationServer type exposes the following members.
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). |