Click or drag to resize

TranslationServer Methods

The TranslationServer type exposes the following members.

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