aiogram/tests
mahisafa82 53ad537739
i18n: normalize Telegram region codes in locale detection
Resolve user locale by checking the Telegram language code as-is, then
its Babel-normalized form, then the base language. This fixes lowercase
regional codes such as pt-br failing to match available translations like
pt_BR. Add tests covering region-code variants and fallback behavior, and
update i18n documentation plus changelog notes.
2026-02-26 03:07:37 +03:30
..
data/locales Dev 3.x i18n & improvements (#696) 2021-09-22 00:52:38 +03:00
test_api Added full support of the Bot API 9.4 (#1761) 2026-02-10 23:43:52 +02:00
test_dispatcher Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_filters Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
test_flags Dev 3.x flat package (#961) 2022-08-14 01:07:52 +03:00
test_fsm Preserve middleware data across scene transitions (#1687) (#1766) 2026-02-15 20:24:34 +02:00
test_handler Removed the use of the context instance (Bot.get_current) from all placements that were used previously. (#1230) 2023-07-28 22:23:32 +03:00
test_issues Preserve middleware data across scene transitions (#1687) (#1766) 2026-02-15 20:24:34 +02:00
test_utils i18n: normalize Telegram region codes in locale detection 2026-02-26 03:07:37 +03:30
test_webhook Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
__init__.py Update tests and small refactoring 2019-11-16 22:32:26 +02:00
conftest.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
deprecated.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00
docker-compose.yml EOL of Py3.9 (#1726) 2025-10-06 19:19:23 +03:00
mocked_bot.py Migrate from Black to Ruff (#1750) 2026-01-04 21:34:08 +02:00