mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
Add [p]set regionalformat command to set regional formatting (#3677)
* Add `[p]set region` command to set regional formatting * Add Babel to intersphinx * rename 'region' to 'regional format`
This commit is contained in:
@@ -89,6 +89,7 @@ class RedBase(
|
||||
whitelist=[],
|
||||
blacklist=[],
|
||||
locale="en-US",
|
||||
regional_format=None,
|
||||
embeds=True,
|
||||
color=15158332,
|
||||
fuzzy=False,
|
||||
@@ -537,6 +538,8 @@ class RedBase(
|
||||
|
||||
i18n_locale = await self._config.locale()
|
||||
i18n.set_locale(i18n_locale)
|
||||
i18n_regional_format = await self._config.regional_format()
|
||||
i18n.set_regional_format(i18n_regional_format)
|
||||
|
||||
self.add_cog(Core(self))
|
||||
self.add_cog(CogManagerUI())
|
||||
|
||||
Reference in New Issue
Block a user