Skip to Content
⚠ Under Construction
ReferencePython APIendstone.lang

endstone.lang

Classes:

NameDescription
LanguageRepresents the interface for translating text into different languages.
TranslatableRepresents an object with a text representation that can be translated by the Minecraft client.

Language

Represents the interface for translating text into different languages.

Methods:

NameDescription
translateTranslates a given text using a set of parameters for a specific locale.
Translates a Translatable object into a specific locale.

Attributes:

NameTypeDescription
localestrGets the current locale.

locale

locale: str

Gets the current locale.

translate

translate( text: str, params: list[str] | None = None, locale: str | None = None ) -> str

Translates a given text using a set of parameters for a specific locale.

translate(translatable:Translatable, locale:str | None = None) -> str

Translates a Translatable object into a specific locale.

Translatable

Translatable(text:str, params:list[str] | None = None)

Represents an object with a text representation that can be translated by the Minecraft client.

Attributes:

NameTypeDescription
paramslist[str]Get the translation parameters.
textstrGet the text to be translated.

params

params: list[str]

Get the translation parameters.

text

text: str

Get the text to be translated.

Last updated on