weave
Start a book in English and finish it in another language, with the words swapping over as you learn them.
Working, with an ingest pipeline for real books and a built lexicon.
Weaving, gated by what you actually know
A diglot-weave reader swaps individual words of a text into the language you are learning, so the sentence around each new word carries you through it. Done naively it degrades into a wall of words you have never seen.
Here a word is only ever woven in after you have met it as a flashcard. Each chapter opens with roughly fifteen of its most useful words, most frequent first, scheduled by the same spaced-repetition algorithm Anki uses; the chapter unlocks for reading when those cards are done. The text drifts towards the target language at exactly the rate you can follow it.
More than one language
The pipeline, data format and UI take a per-book language field, so another language is a dictionary plus a transliterator. Chinese uses CC-CEDICT with tone-marked pinyin. German reads English-gloss lookups out of the kaikki.org Wiktionary extract, which is streamed down from 1 GB to 7 MB, and shows each noun's article as a reading aid that fades like furigana.
German exposed a keying bug: cards were keyed by lexeme id alone, so a German book would have taken over the Japanese card for the same lexeme. Cards are now keyed per language, with a one-time migration that tags existing rows by book language.