AI Card Translator

AnkiWeb addon 918408198

Translates flashcard question and answer fields into a chosen language using OpenAI or Gemini, storing results in separate fields while keeping originals, with single-card and batch workflows and configurable API keys.
AI-generated summary; may contain mistakes.

card-creationainote-management

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2025-12-15
Anki versions
23.10~
License
MIT (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

stale

  • Last update or commit: 2025-12-16 (320 days before the snapshot).
  • GitHub Actions workflows: 1.
  • Commits in the last year: 18.
  • Issues: 1 open, 1 closed.
  • Pull requests: 0 open, 1 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.10+2025-12-15
History across monthly snapshots

Loading…

Similar addons

AI Grader

Scores typed flashcard answers with a 0–100% AI similarity grade, optional partial credit, automatic Again/Hard/Good/Easy selection, and OpenAI or Gemini support.

aischedulingreview-flowquiz

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 ⭐ 0 Anki 23.10~ Updated 2025-12-16
Ankify

Turns clipboard text into Anki flashcards using a chosen AI provider directly in the Add window, with review, regeneration, note-type mapping, and specialization options.

card-creationaishortcutscloze

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2026-10-27
Anki AI Grader

Lets you answer flashcards by typing, speaking, or handwriting, then has a chosen LLM grade the answer as correct, partly, or totally wrong and explain mistakes.

aischedulingreview-flowquiz

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2026-10-11

Description


Studying in a second language shouldn’t mean rebuilding your deck.

Translate your cards into another language while keeping the original text intact.
Ideal for bilingual decks and gradual translation workflows.

Key features

β€’ Translate question/answer fields into target fields
β€’ Single-card and batch translation workflows
β€’ Supports OpenAI and Gemini (configurable)
β€’ Multiple languages supported

How to use

Choose source/target fields, run translation on the current card or a search result, and store output in dedicated fields.

Source code

GitHub: https://github.com/yuwayanagitani/anki-ai-translator



γ€€





==================================================

API Key Required

This add-on uses external AI services and requires your own API key.
Supported providers include OpenAI and Google Gemini.
No API key is included or provided by this add-on.

How to Set the API Key (Environment Variable)

The API key must be stored as an environment variable so that Anki can access it securely.

macOS
Run the following command in Terminal:
launchctl setenv OPENAI_API_KEY your_api_key_here
or for Gemini:
launchctl setenv GEMINI_API_KEY your_api_key_here
Restart Anki after setting the variable.

Note: On macOS, environment variables set with launchctl may be cleared after an OS reboot.
To avoid re-setting them every time, define the variables persistently using a LaunchAgent or your shell profile.

Windows

  1. Open "Environment Variables" from System Settings. (You can access it by searching "environment" in your start menu (windows button).
  2. Add a new user variable:
      Variable name: OPENAI_API_KEY or GEMINI_API_KEY
      Variable value: your_api_key_here
  3. Restart Anki after saving.

Once the environment variable is set, the add-on will automatically detect it on startup.


==================================================

Updates

  • v0.2.0 - added button on the reviewer "other" pull down. (2025-12-16)

==================================================

Supports

This tool is built to support medical students and residents.
Support via thumbing up πŸ‘ on this page and Buy Me a Coffee β˜• motivates me a lot!!


README

AI Card Translator

AI Card Translator is an Anki add-on that allows you to translate the currently displayed card instantly using AI, directly from the Reviewer screen.
It is designed for situations where you suddenly want to understand a card in another language during review, without breaking your learning flow.


πŸ”— AnkiWeb Page

This add-on is officially published on AnkiWeb:

πŸ‘‰ https://ankiweb.net/shared/info/918408198

Installing from AnkiWeb is recommended for the easiest setup and automatic updates.


🎯 Key Features

  • 🌍 Translate the currently reviewed card with one action
  • 🧠 Uses AI for context-aware, natural translations
  • πŸ” Supports multiple providers:
    • OpenAI
    • Google Gemini
  • πŸͺΆ Minimal UI β€” no interruption to review flow
  • 🧩 Works with any note type and any language pair

πŸš€ How It Works

  1. You are reviewing a card in Anki
  2. Trigger AI Card Translator from the Reviewer menu
  3. The card’s content is sent to the selected AI model
  4. The translated text is generated
  5. The translation is written back to the configured field

This makes it ideal for:

  • Language learning
  • Translating medical / technical terms
  • Understanding foreign-language source material during review

πŸ“¦ Installation

βœ… From AnkiWeb (Recommended)

  1. Open Anki
  2. Go to Tools β†’ Add-Ons β†’ Browse & Install
  3. Search for AI Card Translator
  4. Install and restart Anki

πŸ“ Manual Installation (GitHub)

  1. Download or clone this repository
  2. Place it into:
    Anki2/addons21/anki-ai-translator
  3. Restart Anki

πŸ”‘ API Key Setup

This add-on requires an API key for the selected provider.

Provider Environment Variable
OpenAI OPENAI_API_KEY
Gemini GEMINI_API_KEY

API keys can be set via:

  • System environment variables, or
  • The add-on’s configuration dialog

βš™οΈ Configuration

Open:

Tools β†’ Add-Ons β†’ AI Card Translator β†’ Config

Main options include:

  • AI provider selection (OpenAI / Gemini)
  • Model name
  • Source language (auto-detect supported)
  • Target language
  • Output field (where the translation is written)
  • Overwrite behavior (skip / append / replace)

πŸ§ͺ Usage

Translate the current card

While reviewing a card:

More β†’ AI Card Translator

The translation is generated instantly and written to the specified field.

This allows you to:

  • Translate only when needed
  • Keep original cards untouched
  • Add translations incrementally during normal review

⚠️ Privacy Notes

Card contents are sent to external AI services.
Avoid translating cards containing sensitive or personal information unless you understand the data handling policies of the selected provider.


πŸ›  Troubleshooting

Problem Solution
β€œNo current card.” Run from the Reviewer screen
Translation not written Check output field name
API error Verify API key and model
Unexpected language Set target language explicitly

πŸ“œ License

MIT License


πŸ”§ Related Add-ons

  • AI Card Explainer β€” Generate explanations for cards
  • AI Card Splitter β€” Split large cards into smaller ones
  • HTML Exporter for Anki β€” Export cards to HTML / PDF

These add-ons are designed to work together as a modular, AI-powered Anki workflow.