🌍 Feature: Create Bot Translation System and Language Files
📋 Description
This issue aims to implement the multilingual support system for SalemBot by creating structured translation files and replacing hardcoded strings with dynamic, locale-aware alternatives.
✅ Goals
- Provide support for multiple languages in the bot (starting with French and English).
- Centralize all user-facing text in translation files.
- Create a helper utility to fetch strings based on the user's language or server default.
📁 File Structure
Translation files will be stored in: src/data/lang/
Each language should have its own JSON file:
🛠️ Implementation
🌍 Feature: Create Bot Translation System and Language Files
📋 Description
This issue aims to implement the multilingual support system for SalemBot by creating structured translation files and replacing hardcoded strings with dynamic, locale-aware alternatives.
✅ Goals
📁 File Structure
Translation files will be stored in: src/data/lang/
Each language should have its own JSON file:
🛠️ Implementation
get_translation(key: str, lang: str = "us_EN")utility that fetches a localized string."Welcome, {username}!").us_EN) if translation key or locale is missing./languagecommand to allow players to change their language settings.