Skip to content
Translate and optionally add to anki
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.eslintignore
.eslintrc
.gitignore
README.md
package-lock.json
package.json
pixel.gif
screenshot.png
translation.png
zazu.json

README.md

Zazu translation

Translate and optionally add to anki

Usage

Start a query with any supported language (ch, en, es, fr, it, pl, pt, ru). i.e.

For example, en Schloss will show possible translations from detected language to english,

Screenshots

screenshot

Installation

Add "linonetwo/zazu-translation" to your ~/.zazurc.json plugins, like:

{
  "plugins": ["linonetwo/zazu-translation"]
}

or with config variables:

{
  "hotkey": "alt+space",
  "theme": "tinytacoteam/zazu-light-theme",
  "displayOn": "detect",
  "plugins": [
    {
      "name": "linonetwo/zazu-translation",
      "variables": {
        "anki": "true",
        "deckName": "English",
        "modelName": "基础",
        "fields": {
          "raw": "正面",
          "result": "背面"
        }
      }
    },
    "other-plugins"
  ]
}

Add to Anki

First, make sure you have anki-connect installed, then set variables in the ~/.zazurc.json:

  • anki set to true
  • deckName make sure it exists and not misspelled
  • modelName the card type you are going to use
  • fields mapping from raw and result to the fields in your model

Make sure your Anki is open in the background, otherwise this plugin won't work.

Disclaimer

This is a zazu plugin and I've reuse the code from sagold/zazu-dict

You can’t perform that action at this time.