You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
♻️ refactor(i18n): replace kebab-case with snake_case in FTL keys (#72)
* ♻️ refactor(i18n): replace kebab-case with snake_case in FTL keys
- Rename all locale keys from kebab-case to snake_case across en/ and ru/
- Add separator="_" to TranslatorHub so typed method calls match FTL keys
- Introduce types.py with TYPE_CHECKING guard for typed TranslatorRunner
- Migrate routers to use typed i18n method calls where applicable
- Unify TranslatorRunner imports to src.infrastructure.i18n
- Remove obsolete stubs.pyi (replaced by types.py)
- Update generate_i18n_stubs.py to target types.py
- Add generate-i18n justfile command
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ♻️ refactor(bot): refactor admin stats router with logging and typed i18n
- Add logger.info calls to all three admin stats handlers
- Switch from TranslatorHub to i18n middleware injection
- Use typed i18n method calls instead of i18n.get() strings
- Extract stats keyboard markup to utils/markups/admin.py
- Add check_alive_btn locale key for en/ and ru/
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ♻️ refactor(bot): use typed i18n methods in commands router
Replace i18n.get() string calls with typed method calls
in _start_onboarding and command_start_handler.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ♻️ refactor(bot): use typed i18n methods in referral router
- Switch from TranslatorHub to i18n middleware injection
- Replace i18n.get() string calls with typed method calls
- Remove duplicate referral_info call
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ♻️ refactor(bot): use typed i18n methods in settings markups
Replace i18n.get() string calls with typed method calls
for btn_settings, btn_language, and btn_back buttons.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* remove duplicated code
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments