Click or drag to resize

TranslationServer Class

Server that manages all translations. Translations can be set to it and removed from it.

Inheritance Hierarchy
SystemObject
  GodotTranslationServer

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static class TranslationServer

The TranslationServer type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberSingleton
Top
Methods
  NameDescription
Public methodStatic memberAddTranslation

Adds a Translation resource.

Public methodStatic memberClear

Clears the server from all translations.

Public methodStatic memberGetLoadedLocales

Returns an Array of all loaded locales of the game.

Public methodStatic memberGetLocale

Returns the current locale of the game.

Public methodStatic memberGetLocaleName

Returns a locale's language and its variant (e.g. "en_US" would return "English (United States)").

Public methodStatic memberRemoveTranslation

Removes the given translation from the server.

Public methodStatic memberSetLocale

Sets the locale of the game.

Public methodStatic memberTranslate

Returns the current locale's translation for the given message (key).

Top
See Also