From 930bca0876a15a5d3d12a1b773f35c9bc7a5cafe Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 11 Apr 2022 04:08:27 +0300 Subject: [PATCH] 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 --- 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::