Skip to content

Locale

LocaleBuilder #

Bases: ABC

A class that can be inherited from to created APIs to use locales in your code.

fallback abstractmethod property #

fallback: str

Return the name used when there is no localization for a language.

build abstractmethod #

build() -> Mapping[str, str]

Builds the locales for a command. Returns a Mapping of language codes to strings.

Discord API Docs Localization.