How yomnaelameer/ai-language-translation-tool works
This is a small Streamlit translation app. Users choose source and target languages, enter text, and submit it; the app checks for empty input and matching languages before calling the translation function. That function sends the text and language pair to MyMemory, parses the returned JSON, and returns the translated text for display. The README documents the supported languages and API behavior; the graph follows the sampled source for the call and response path.
Main entry points: translator.py Translation client · app.py Streamlit app
Components 4
User interface
- Streamlit app
app.py
Translation runtime
- Translation client
translator.py
Other components
- User
- MyMemory API
Connections 5
- User → Streamlit app: enters and submits
README.md - Streamlit app → Translation client: requests translation
app.py - Translation client → MyMemory API: sends HTTP request
translator.py - MyMemory API → Translation client: returns JSON
translator.py - Translation client → Streamlit app: returns translation
app.py