Skip to content

jiangjun0105/google-translate-anki

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Translate + Anki <3

Build Status

This chrome extension behaves exactly like google translate (2.0.7), in fact, it has been reverse engineered and patched. Now it allows adding the found word to Anki desktop app.

Update on 2023-03-06 by Jun: It still works with the newer version google translate. I swapped the front and back of the flashcards added and included additional configuration instructions. I didn't push this to the original repo because it seems not to be maintained anymore.

Setup

  1. You must install AnkiConnect plugin to enable HTTP protocol.
  2. The desktop app (afaik) cannot be daemonized, so it should be running while adding (extension doesn't cache anything).
  3. Install unpacked extension

install-unpacked-img

  1. Setup the URL (default is http://localhost:8765), deck and model

options-screenshot

  1. Configure the AnkiConnect as follow so that you can add cards from the pop-up window:
{
    "apiKey": null,
    "apiLogPath": null,
    "ignoreOriginList": [],
    "webBindAddress": "127.0.0.1",
    "webBindPort": 8765,
    "webCorsOriginList": [
        "http://localhost",
        "*"
    ]
}
  1. (Optional) Pin the Google Translate + Anki to your browser.

Usage

Just click on target language translation word. The source will be saved as "Front", the translation as "Back" card's fields. After that, the target word becomes green (or red in case of duplication or another error).

bubble-screenshot

Note, that adding the card takes ~3sec on my MBP, be patient :)

Why not AnkiWeb?

Don't ask for adding cards right into AnkiWeb, authors explicitly don't want it

About

Reverts the added cards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.1%
  • CSS 6.2%
  • HTML 0.7%