Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
locale
The locale of the translation.
Translation.swift:17final var locale: String { get set }
Other members in extension
Type members
Instance members
func addMessage(srcMessage: StringName, xlatedMessage: StringName, context: StringName
) Adds a message if nonexistent, followed by its translation.
func addPluralMessage(srcMessage: StringName, xlatedMessages: PackedStringArray, context: StringName
) Adds a message involving plural translation if nonexistent, followed by its translation.
func eraseMessage(srcMessage: StringName, context: StringName
) Erases a message.
func getMessage(srcMessage: StringName, context: StringName
) -> StringName Returns a message’s translation.
func getMessageCount(
) -> Int32 Returns the number of existing messages.
func getMessageList(
) -> PackedStringArray Returns all the messages (keys).
func getPluralMessage(srcMessage: StringName, srcPluralMessage: StringName, n: Int32, context: StringName
) -> StringName Returns a message’s translation involving plurals.
func getTranslatedMessageList(
) -> PackedStringArray Returns all the messages (translated text).
Show implementation details (2)
Hide implementation details
func _getMessage(srcMessage: StringName, context: StringName
) -> StringName Virtual method to override
getMessage(srcMessage:context:)
.func _getPluralMessage(srcMessage: StringName, srcPluralMessage: StringName, n: Int32, context: StringName
) -> StringName Virtual method to override
getPluralMessage(srcMessage:srcPluralMessage:n:context:)
.