An advanced translator, built as v20 from the start โ never a basic v1.
- โจ What is Translator App?
- ๐ 9 Languages, Both Ways
- ๐ฏ What v20 Does โ Advanced
- ๐ Offline Backup (v20)
- ๐ How to Use
- ๐ ๏ธ Tech Stack
- ๐ Project Structure
- ๐ Privacy & Honest Limits
- ๐ค Contributing
- ๐ Credits
| ๐ | ๐ | ๐ถ | โจ |
|---|---|---|---|
| 9 Languages | Speak | Offline Backup | Ultimate UI |
Translate English, Hindi, Bengali, Spanish, French, German, Japanese, Tamil and Telugu โ both ways, with a โ swap button.
English: "Good morning"
โ
Hindi: "เคธเฅเคชเฅเคฐเคญเคพเคค" โข Bengali: "เฆธเงเฆชเงเฆฐเฆญเฆพเฆค"
Online translation: free MyMemory API โ no key, no account. Offline backup: exact phrases + word-by-word โ so it still works when the internet fails. ๐
| # | Language | Native | Example โ "Good morning" |
|---|---|---|---|
| 01 | ๐ฌ๐ง English | English | Good morning |
| 02 | ๐ฎ๐ณ Hindi | เคนเคฟเคจเฅเคฆเฅ | เคธเฅเคชเฅเคฐเคญเคพเคค |
| 03 | ๐ง๐ฉ Bengali | เฆฌเฆพเฆเฆฒเฆพ | เฆธเงเฆชเงเฆฐเฆญเฆพเฆค |
| 04 | ๐ช๐ธ Spanish | Espaรฑol | Buenos dรญas |
| 05 | ๐ซ๐ท French | Franรงais | Bonjour |
| 06 | ๐ฉ๐ช German | Deutsch | Guten Morgen |
| 07 | ๐ฏ๐ต Japanese | ๆฅๆฌ่ช | ใใฏใใใใใใพใ |
| 08 | ๐ฎ๐ณ Tamil | เฎคเฎฎเฎฟเฎดเฏ | เฎเฎพเฎฒเฏ เฎตเฎฃเฎเฏเฎเฎฎเฏ |
| 09 | ๐ฎ๐ณ Telugu | เฐคเฑเฐฒเฑเฐเฑ | เฐถเฑเฐญเฑเฐฆเฐฏเฐ |
All 9 languages, both ways โ with a โ swap button. ๐
| Feature | What it does |
|---|---|
| ๐ 9 languages, both ways | English, Hindi, Bengali, Spanish, French, German, Japanese, Tamil, Telugu โ with a โ swap button |
| ๐ Online translation | Free MyMemory API, no key, no account |
| ๐ถ Offline backup (v20) | Exact common phrases + word-by-word translation (see below) |
| ๐ Speak | Speak the input and the translation (browser speech, free) |
| ๐ Copy, Share, Favourite | One tap each โ all saved only on your phone |
| ๐ History | Your past translations, saved only on your phone |
| ๐ข Character count | Live count as you type |
| ๐ฌ Example phrases | Tap an example, translate it instantly |
| ๐ Light / dark theme | Your choice, remembered |
| โจ Beautiful ultimate UI | Indigo โ amber gradient glass cards, phone-first, no horizontal scroll |
| ๐ฑ Works as an app (PWA) | Install from Chrome โ "Add to Home screen", cache translator-v20 with old-cache delete |
| ๐ Python version | translator.py with the exact same v20 logic (online + offline phrase book + word-by-word) |
The v20 superpower โ the app never leaves you with nothing.
| Situation | What happens |
|---|---|
| โ Internet + MyMemory quota left | Online translation โ full sentences, all 9 languages |
| Falls back to offline phrases + word-by-word (Hindi / Bengali) | |
| ๐ต Internet fails | Falls back to offline phrases + word-by-word (Hindi / Bengali) |
How the offline backup works:
| Layer | Example |
|---|---|
| Exact common phrases | "Good morning" โ เคธเฅเคชเฅเคฐเคญเคพเคค / เฆธเงเฆชเงเฆฐเฆญเฆพเฆค |
| Word-by-word | Common words translated one by one, so simple English โ Hindi / Bengali still works |
The app always tells you which source it used โ online or offline. It never pretends an offline word-by-word translation is a full online translation. โจ
| Step | What to do |
|---|---|
| 1 | ๐ Open the live demo |
| 2 | ๐ Pick From and To languages โ or tap โ to swap |
| 3 | โจ๏ธ Type your text โ watch the character count |
| 4 | โจ Read the translation โ and which source it used (online / offline) |
| 5 | ๐ Tap Speak to hear it โข ๐ Copy โข โญ Favourite โข ๐ Check History |
| Step | What to do |
|---|---|
| 1 | Open the live demo in Chrome on your phone |
| 2 | Tap โฎ โ "Add to Home screen" |
| 3 | โ Translator is now an app โ works offline with the backup |
# Open index.html in any browser, or:
python3 -m http.server 8000
# then open http://localhost:8000
# Python version
python translator.py| Layer | Technology |
|---|---|
| ๐ Web | HTML5, CSS3, JavaScript |
| ๐ Online API | MyMemory (free, no key, no account) |
| ๐ถ Offline | Built-in phrase book + word-by-word dictionary |
| ๐ Speech | Browser Speech Synthesis (free) |
| ๐ฑ PWA | Manifest (manifest.json) + Service Worker (sw.js), cache translator-v20 |
| ๐ Python | translator.py โ exact same v20 logic |
| ๐จ Design | Indigo โ amber gradient glass cards, phone-first |
| ๐ Hosting | GitHub Pages |
๐ translator-app/
โ
โโโ ๐ index.html # Main site โ translator UI, glass cards
โโโ ๐จ style.css # All styling โ indigo โ amber gradient
โโโ โ๏ธ app.js # All logic โ online + offline, speak, history
โโโ ๐ translator.py # Python version โ same v20 logic
โโโ ๐ผ๏ธ favicon.svg # Custom favicon
โโโ ๐ฑ manifest.json # PWA manifest
โโโ โ๏ธ sw.js # Service worker (cache translator-v20)
โโโ ๐ฃ POSTING_KIT.md # Posting kit for the 100+ AI Projects series
โโโ ๐ README.md # You are here โจ
- ๐ No API key, no account โ MyMemory is free and keyless
- ๐ต Offline backup โ phrases + word-by-word work without internet
- ๐พ Favourites + history stay on your phone โ nothing is uploaded
Honest limit: MyMemory is free with a daily limit. If it says quota finished, the app does NOT invent a translation โ it falls back to offline phrases / word-by-word for Hindi / Bengali, or tells you to try a shorter text. Google's unofficial translate endpoint was tested and was blocked from this environment, so it is NOT used.
Found a phrase the offline book gets wrong? A better word-by-word entry?
Open an issue with the phrase + the correct translation โ real improvements only, no fake features. ๐
๐ง Email: [email protected]
๐ 9 languages. One tap. Even offline. โจ
โญ If this helped you talk to someone new, star this repo! โญ