From 217e24fb314d1b2f55863bd0a212dfd53269fb6e Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 7 Apr 2022 03:20:55 +0300 Subject: [PATCH] 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 --- docs/utils/i18n.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/utils/i18n.rst b/docs/utils/i18n.rst index 9ca61510..13d47ed6 100644 --- a/docs/utils/i18n.rst +++ b/docs/utils/i18n.rst @@ -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::