TranslationServer

    Server that manages all translations.

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


    • void clear ( )

    Clears the server from all translations.


    • get_loaded_locales ( ) const

    Returns an Array of all loaded locales of the game.



    • String get_locale_name ( locale ) const

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


    Removes the given translation from the server.


    • void set_locale ( locale )

    • String translate ( message ) const

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