All checks were successful
CI / lint-and-test (push) Successful in 14s
- Introduced a new i18n module for managing translations and language normalization, supporting both Russian and English. - Updated various handlers and services to utilize the new translation functions for user-facing messages, improving user experience based on language preferences. - Enhanced error handling and response messages to be language-aware, ensuring appropriate feedback is provided to users in their preferred language. - Added tests for the i18n module to validate language detection and translation functionality. - Updated the example environment file to include a default language configuration.
7 lines
223 B
Python
7 lines
223 B
Python
"""Internationalization: RU/EN by Telegram language_code. Normalize to 'ru' or 'en'."""
|
|
|
|
from duty_teller.i18n.messages import MESSAGES
|
|
from duty_teller.i18n.core import get_lang, t
|
|
|
|
__all__ = ["MESSAGES", "get_lang", "t"]
|