Multilingual & Localization
Relevant source files
The following files were used as context for generating this wiki page:
Multilingual & Localization refers to the system's ability to support multiple languages and adapt its interface based on the user's regional preferences. In the TelePilot ecosystem, this feature enables global accessibility for Telegram channel and group management.
The system incorporates 15 built-in languages and provides specific interface adaptations, such as Right-to-Left (RTL) support, to accommodate diverse linguistic requirements. It utilizes automated detection mechanisms to serve content in the user's preferred language.
Sources: README.md:154-158
Supported Languages and RTL Implementation
The platform includes native support for 15 major languages. This allows administrators and users to interact with the dashboard and bot functionalities in their primary language.
Localization Coverage
The following table outlines the languages currently supported by the system:
| Language | Support Type |
|---|---|
| English | Built-in |
| Arabic | Built-in (RTL) |
| Chinese | Built-in |
| German | Built-in |
| Spanish | Built-in |
| French | Built-in |
| Indonesian | Built-in |
| Italian | Built-in |
| Japanese | Built-in |
| Georgian | Built-in |
| Korean | Built-in |
| Portuguese | Built-in |
| Romanian | Built-in |
| Russian | Built-in |
| Turkish | Built-in |
Sources: README.md:154-156
Right-to-Left (RTL) Support
For languages such as Arabic, the system provides full RTL support. This ensures that the user interface, including text alignment, navigation elements, and dashboard layouts, flips correctly to match the reading direction of the language.
Sources: README.md:157
Automated Language Detection
The system simplifies user configuration by automatically detecting the user's language. This mechanism serves the appropriate localized version of the MiniApp or bot interface without requiring manual selection during initial interaction.
Detection Flow
The following diagram illustrates how the system processes a user's language preference during a session:
The diagram shows the logic flow from initial interaction to serving localized content based on language attributes.
Sources: README.md:158
Localized Content Management
The localization system extends beyond static interface text to dynamic content managed within the platform.
Placeholders and Dynamic Content
Custom bot commands and auto-messages utilize dynamic placeholders that remain consistent across localized versions. These include:
{name}: The user's name{username}: The user's Telegram username{channel}: The specific channel name
Sources: README.md:108-111
AI-Powered Insights
The summarization module, controlled via the MiniApp panel, processes chat history to provide insights. While the local bot.py uses a simple extractive summarizer (splitting on punctuation like . or !), the broader TelePilot system integrates Gemini and ChatGPT to handle content insights across the supported languages.
Sources: README.md:139-141, bot.py:65-74
Summary
The Multilingual & Localization feature ensures the Telegram Summary Bot and its associated MiniApp Control Panel are accessible to a global audience. By supporting 15 languages, implementing RTL layouts, and using automatic language detection, the system provides a seamless experience for non-English speakers. This localization framework is integrated into the core management suite, affecting member management, broadcasting, and AI-powered insights.
Sources: README.md:154-158