tessl install tessl/pypi-googletrans@4.0.0An unofficial Google Translate API for Python providing free text translation and language detection capabilities
Agent Success
Agent success rate when using this tile
100%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
99%
Build a simple welcome message system that can display greetings in different languages based on user preference.
Create a program that translates a welcome message into various languages. The system should:
Your implementation should handle:
@generates
async def translate_welcome_message(message: str, target_language: str) -> dict:
"""
Translates a welcome message to the target language.
Args:
message: The welcome message in English
target_language: The target language code (e.g., 'es', 'fr', 'ko')
Returns:
A dictionary containing:
- 'translated_text': The translated message
- 'source_language': The detected source language code
- 'target_language': The target language code
"""
passProvides translation capabilities for converting text between languages.
@satisfied-by