🌐 Interface Localization: - Added i18next for multi-language interface support - Created LocalizationService with language detection - Added translation files for Russian and English - Implemented language selection in user settings 🤖 AI Profile Translation (Premium feature): - Integrated DeepSeek API for profile translation - Added TranslationController for translation management - Premium-only access to profile translation feature - Support for 10 languages (ru, en, es, fr, de, it, pt, zh, ja, ko) �� Database & Models: - Added language field to users table with migration - Updated User model to support language preferences - Added language constraints and indexing 🎛️ User Interface: - Added language settings menu in bot settings - Implemented callback handlers for language selection - Added translate profile button for VIP users - Localized all interface strings 📚 Documentation: - Created comprehensive LOCALIZATION.md guide - Documented API usage and configuration - Added examples for extending language support
43 lines
1009 B
JSON
43 lines
1009 B
JSON
{
|
|
"name": "telegram-tinder-bot",
|
|
"version": "1.0.0",
|
|
"description": "A fully functional Telegram bot that mimics Tinder functionalities for user matching.",
|
|
"main": "dist/bot.js",
|
|
"scripts": {
|
|
"start": "node dist/bot.js",
|
|
"dev": "ts-node src/bot.ts",
|
|
"build": "tsc",
|
|
"test": "jest",
|
|
"db:init": "ts-node src/scripts/initDb.ts"
|
|
},
|
|
"dependencies": {
|
|
"@types/node-telegram-bot-api": "^0.64.11",
|
|
"axios": "^1.12.1",
|
|
"dotenv": "^16.6.1",
|
|
"i18next": "^25.5.2",
|
|
"node-telegram-bot-api": "^0.64.0",
|
|
"pg": "^8.11.3",
|
|
"sharp": "^0.32.6",
|
|
"uuid": "^9.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^29.5.8",
|
|
"@types/node": "^20.9.0",
|
|
"@types/pg": "^8.15.5",
|
|
"@types/uuid": "^9.0.8",
|
|
"jest": "^29.7.0",
|
|
"ts-jest": "^29.1.1",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "^5.3.2"
|
|
},
|
|
"keywords": [
|
|
"telegram",
|
|
"bot",
|
|
"tinder",
|
|
"matching",
|
|
"dating"
|
|
],
|
|
"author": "Telegram Tinder Bot",
|
|
"license": "MIT"
|
|
}
|