Struct Translation

Language Translation.

struct Translation ;

Translations are resources that can be loaded and unloaded on demand. They map a string to another string.

Properties

NameTypeDescription
locale[get, set] StringThe locale of the translation.
messages[get, set] PoolArray!(godot.core.string.String)

Methods

NameDescription
_getMessages
_setMessages
addMessage Adds a message if nonexistent, followed by its translation.
eraseMessage Erases a message.
getLocale
getMessage Returns a message's translation.
getMessageCount Returns the number of existing messages.
getMessageList Returns all the messages (keys).
setLocale