Skip to content

Documentation

Pearoo edited this page Aug 13, 2024 · 2 revisions

Localization (discord.ext.localization.Localization)

Name Type Description
localizations Union[str, dict] If str: relative path to the localization JSON or YAML file. If dict: dictionary containing the localizations.
default_locale Optional[str] The default locale to use if a given locale is not found in the localization.
error Optional[bool] Whether to raise an error if the localization is not found. If set to False, it will return the key itself. Defaults to False.
Clone this wiki locally