Skip to content

localization

Gives the server texts in the server's language.

Source: src/Moongate.Server.Ultima/Modules/LocalizationModule.cs

localization.get(id, ...) -> string

Returns message id of data/messages in the server's language, with {0}, {1}, ... replaced by the extra arguments.

ParameterTypeDefault
idinteger
...any

Returns string.

localization.language() -> string

Returns the server's language code, such as eng or ita.

Returns string.

localization.text(id) -> string?

Returns the text of message id without filling in values, or nil when it does not exist.

ParameterTypeDefault
idinteger

Returns string?.

Made with ❤️ by Tom

Buy me a coffee