Skip to content

About

Translator App v20 ๐ŸŒ | 9 Languages | Offline Phrases + Speak | Project #04

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒโœจ Translator App โ€” v20 ADVANCED โœจ๐ŸŒ

9 Languages | Offline Backup + Speak | Beautiful Ultimate UI

Translator Project 04 9 Languages No API Key Offline Backup License

An advanced translator, built as v20 from the start โ€” never a basic v1.

Live Demo GitHub Portfolio


๐Ÿ“‘ Table of Contents


โœจ What is Translator App?

๐ŸŒ ๐Ÿ”Š ๐Ÿ“ถ โœจ
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. ๐Ÿ’š


๐ŸŒ 9 Languages, Both Ways

# 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. ๐Ÿ”„


๐ŸŽฏ What v20 Does โ€” Advanced

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)

๐Ÿ”Œ Offline Backup (v20)

The v20 superpower โ€” the app never leaves you with nothing.

Situation What happens
โœ… Internet + MyMemory quota left Online translation โ€” full sentences, all 9 languages
โš ๏ธ MyMemory daily quota finished 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. โœจ


๐Ÿš€ How to Use

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

Install as an App (PWA)

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

Run It Locally

# Open index.html in any browser, or:
python3 -m http.server 8000
# then open http://localhost:8000

# Python version
python translator.py

๐Ÿ› ๏ธ Tech Stack

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

๐Ÿ“ Project Structure

๐ŸŒ 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 โœจ

๐Ÿ”’ Privacy & Honest Limits

  • ๐Ÿ”‘ 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.


๐Ÿค Contributing

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. ๐ŸŒ


๐Ÿ’œ Credits

Built with ๐Ÿ’œ by

Aspiring Software Developer

Project #04 of the 100+ AI Projects Series

GitHub YouTube Portfolio

๐Ÿ“ง Email: [email protected]


๐ŸŒ 9 languages. One tap. Even offline. โœจ

โญ If this helped you talk to someone new, star this repo! โญ

About

Translator App v20 ๐ŸŒ | 9 Languages | Offline Phrases + Speak | Project #04

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages