Fixed path of I18n Class (#879)

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-11 04:08:27 +03:00 committed by GitHub
parent e8432d38f5
commit 930bca0876
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 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:: .. code-block::