Fixed path of I18n Class

The I18n Class gets imported in 3.0.0b2 as follows:
from aiogram.utils.i18n import I18n

Whereas the documentation implies that it should be:
from aiogram.utils.i18n.code import I18n
This commit is contained in:
Michael 2022-04-07 03:20:55 +03:00 committed by GitHub
parent ffe9506dc5
commit 217e24fb31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ Configuring engine
After you messages is already done to use gettext your bot should know how to detect user language
On top of your application the instance of :class:`aiogram.utils.i18n.code.I18n` should be created
On top of your application the instance of :class:`aiogram.utils.i18n.I18n` should be created
.. code-block::