-
-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default locale in I18nMiddleware is unused #562
Labels
bug
Something is wrong with the framework
Comments
r4rdsn
added a commit
to r4rdsn/aiogram
that referenced
this issue
Apr 11, 2021
1 task
r4rdsn
added a commit
to r4rdsn/aiogram
that referenced
this issue
Apr 11, 2021
This is how I'll have to fix it until #563 gets merged: https://github.com/fincubator/cradlex/blob/268995c4f9114b96fcc965346a94f57e2ed9a1b9/cradlex/i18n.py#L6-L10 |
JrooTJunior
added a commit
to r4rdsn/aiogram
that referenced
this issue
Jul 5, 2021
JrooTJunior
added a commit
that referenced
this issue
Jul 5, 2021
r4rdsn
added a commit
to fincubator/cradlex
that referenced
this issue
Jul 6, 2021
aiogram/aiogram#562 is now fixed in upstream since 2.14.2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
When user's locale is not available,
I18nMiddleware(default=locale)
uses givenlocale
.Current Behavior
It returns gettext keys even if default locale exists.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
default='ru'
The text was updated successfully, but these errors were encountered: