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
Name | Type | Description |
---|---|---|
locale [get, set]
|
String | The locale of the translation. |
messages [get, set]
|
PoolArray!(godot.core.string.String) |
Methods
Name | Description |
---|---|
_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
|