rewrite: Update Babel.

New default locale resolution.
Added translation utilities for common tasks.
This commit is contained in:
2023-03-02 18:57:05 +02:00
parent b777bd33e4
commit 252e261a55
4 changed files with 28 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
from .translator import SOURCE_LOCALE, LeoBabel, LocalBabel, LazyStr, ctx_locale, ctx_translator
babel = LocalBabel('babel')
async def setup(bot):
from .cog import BabelCog