TypeSwitch is a language learning application the goal of helping you level up with writing proficiency when learning a new language, built with the Translation API from the Google Chrome Built-in AI - Early Preview Program.
- Clone the Repo
https://github.com/Emorque/TypeSwitch.git- Run index.html on a Chrome Browser
TypeScript requires an experimental flag from Chrome 131+ on desktop platforms It is recommended to use with Chrome Canary or Chrome Dev
- Go to: chrome://flags/#translation-api and enable "Experimental translation API"
- Navigate to here
- Click “from en to es” and “from en to ja” under canTranslate(). Please wait as language models and translation components are downloaded in the background
- Go to: chrome://components and look for TranslateKit components to monitor progress
- Translation API is now ready to translate English ⇔ Spanish and English ⇔ Japanese
- Go to chrome://on-device-translation-internals/ to install all other needed pairs
Since the API is build into your browser, TypeSwitch can work offline
- Copy & Paste a piece of text (Can be from an article, book, blog, etc.)
- Select your base and target language
- As of 12.10.24, 18 Language Pairs are supported
- All Pairs:
- English ⇔ Spanish
- English ⇔ Japanese
- English → Arabic
- English → French
- English → Korean
- English → Russian
- English → Chinese
- English → Chinese (Traditional)
- English → Bengali
- English → Hindi
- English → Dutch
- English → Thai
- English → German
- English → Italian
- English → Polish
- English → Turkish
- English → Portuguese
- English → Vietnamese
- Try your best to translate the original sentence to your selected target language
- Once all sentences are translated, you will see a page of translations from you and Translation API
- A general score is given to give a estimate of how you did, Grammar/syntax is not fully accounted for, so don't take the score to heart
- Compare your translations to that of Translation API and see how you did.
- Create a backend to house user data and authentication.
- Create a complementary extension.
- Have a daily sentence! Kind of like how Wordle has a daily word people try to guess.
- Improve the UI/UX.
MIT
