dracosh 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,8 +18,9 @@ It's made for people who live in a terminal or spend most of the day at a comput
18
18
  - Add cards, start decks and switch between them right in the app (`/add`, `/decks`)
19
19
  - One line is a card: `el gato = the cat; the kitty // Mi gato duerme.` (`;` separates right answers, `//` adds an example). Paste a whole list, or rows copied from a spreadsheet, and check it before it's saved
20
20
  - Import cards from Anki and Quizlet exports, a spreadsheet's CSV or a plain text list, and export them as an Anki deck package, for a spreadsheet or as a text file you can edit (or have an AI assistant write); you see what changes before anything is saved
21
+ - Optional AI help in `/add`: type `pies = ` and a suggested answer and example appear dimmed, Tab takes them; `?20 words for the kitchen` suggests a whole list to pick from. Cards AI wrote carry a ✦ until you check them. Works with your Anthropic, OpenAI or OpenRouter key, or free with a local model in Ollama or LM Studio
21
22
  - Each deck is asked the way you pick after its first card: front → back, back → front, or both ways; change it any time in `/decks`
22
- - Pronunciation, if you turn it on in `/settings`: once the answer is out, the word in the language you're learning in that deck is read aloud with a macOS voice (other systems later); decks in one language, like definitions, stay quiet
23
+ - Pronunciation, if you turn it on in `/settings`: once the answer is out, the word in the language you're learning in that deck is read aloud with a macOS voice (other systems later), or with a natural ElevenLabs voice if you set one up; decks in one language, like definitions, stay quiet
23
24
  - Dracosh works out which languages a deck is in (Spanish → English, say) and which of the two you're learning, from the cards, the deck's name and your other decks, whatever language you use Dracosh in, and says when it's only a guess; set either in `/decks` when it can't tell or guesses wrong
24
25
  - Type the answer, or press Enter with nothing typed to see it and say whether you knew it (`1` or `2`): handy for whole sentences, and it counts just the same
25
26
  - Cloze cards for sentences: `I {{look forward}} to it` asks one gap at a time
@@ -43,6 +44,7 @@ On the first start the dragon hatches, and Dracosh asks three things: the langua
43
44
 
44
45
  - a short tour, where every card tells you what to type and shows you one more thing Dracosh can do
45
46
  - 30 everyday words in the language you're learning, which you translate into yours (for any pair of English, Polish, German, French, Ukrainian, Spanish and Italian)
47
+ - a first deck from AI: Dracosh helps you set up AI help (your own key or a free local model), asks it for everyday words in your language pair, and you pick the cards you want from its list
46
48
  - cards you already have, from Anki, a CSV or a text file (`/import`)
47
49
  - a deck of your own, in `/add`
48
50
 
@@ -75,7 +77,7 @@ Type the answer and press Enter. Not sure, or the answer is a whole sentence? Pr
75
77
  | `/trash` | decks and cards you deleted, kept for 30 days with their progress: Enter brings one back |
76
78
  | `/hint` | reveal one more letter |
77
79
  | `/correct` | your answer was right after all; after a yes it's accepted from now on |
78
- | `/settings` | the app's language, the language you speak, rhythm (a card every few minutes, or a study session), interval, daily goal, sound, pronunciation, quiet hours, weekends, tips, the dragon's look once the die gave it an element, and a reset |
80
+ | `/settings` | the app's language, the language you speak, AI help (optional), rhythm (a card every few minutes, or a study session), interval, daily goal, sound, pronunciation and its voice, quiet hours, weekends, tips, the dragon's look once the die gave it an element, and a reset |
79
81
  | `/stats` | streak and a calendar of your month |
80
82
  | `/badges` | all badges and how to get them |
81
83
  | `/companion` | your dragon, its element and the forms ahead |
@@ -86,6 +88,28 @@ Type the answer and press Enter. Not sure, or the answer is a whole sentence? Pr
86
88
 
87
89
  They're slash commands because "pause" and "quit" are perfectly good English answers.
88
90
 
91
+ ## AI help
92
+
93
+ Optional, and everything works without it. Turn it on in `/settings` → AI help: pick Anthropic, OpenAI, OpenRouter, Ollama, LM Studio or any other OpenAI-compatible address, paste a key (local models need none), pick a model, and Dracosh checks that they work together before saving anything.
94
+
95
+ Then, in `/add`, type a word and ` = ` (`pies = `): a suggested answer appears dimmed after it. In a deck of definitions it suggests a short definition, and in a deck of questions (`Capital of Spain? = `) the answer. Tab or → takes it, and an example sentence follows the same way; typing on ignores the suggestion, and Enter saves only what's in the field.
96
+
97
+ For a whole list, type `?` and what you want, like `?20 words for the kitchen`: the cards come in as they're written, and none is kept until you say so. Space keeps one, `a` keeps them all, `e` fixes one, and Enter adds the ones kept; cards already in the deck are marked.
98
+
99
+ AI can be subtly wrong, so a card it wrote carries a ✦: in `/cards`, after its answer in the quiz, and in `/add`. `/cards` counts the cards still to check and lists them first: open one and pick "Looks right" or fix it, and the ✦ goes. A card you wrote yourself, or whose AI parts you replaced before saving, isn't marked.
100
+
101
+ Any card can be checked too: open it in `/cards` and pick "Check with AI". It looks for a wrong answer, a misspelling, a wrong article or a question with more than one right answer, says what it found and suggests a fix, its changes highlighted, to take or leave. A fix you take checks the card; a card AI finds right keeps its ✦ until you say so.
102
+
103
+ Only the word or request you typed and a few cards of the same deck are sent (for a list, also the fronts it shouldn't repeat; for a check, the card), so a request costs very little; a small model is plenty, and one that doesn't think first answers fastest. Nothing is added by AI alone: you keep or take every card.
104
+
105
+ What it costs stays in sight: `/settings` shows "free" next to a model on your computer and "paid per use" next to a cloud one, and when you pick a cloud model the small, cheap ones come first. If something goes wrong, the message says what to do: a missing or wrong key, a local server that isn't running, too many requests, or an account out of credit.
106
+
107
+ ## Natural voices
108
+
109
+ Optional. Pronunciation uses the macOS voices by default, free and built in. For a more natural voice, pick ElevenLabs in `/settings` → Voice, paste your ElevenLabs API key (or set `ELEVENLABS_API_KEY`), choose a voice, and you'll hear a short sample before anything is saved. Choosing a voice also turns pronunciation on.
110
+
111
+ ElevenLabs bills your account per character. Each word is generated once and kept in `~/.dracosh/audio`, so a word costs once per voice, not on every review. Languages the voice doesn't speak, and any word that can't be fetched (offline, say), are read by the macOS voice instead. If the key stops working or the account runs out of credit, Dracosh says so once and carries on with the macOS voice. To go back, pick macOS voices in the same place.
112
+
89
113
  ## Import and export
90
114
 
91
115
  ```bash
@@ -154,7 +178,7 @@ Fix the lines it lists, and tell me the command to import it for real.
154
178
 
155
179
  ## Your data
156
180
 
157
- Everything stays on your machine, in `~/.dracosh`; `dracosh --data` shows what's there. Progress is saved after every answer, so you can quit any time. One quiz runs at a time: a second window on the same data is refused, so the two can't overwrite each other's progress. The first start of each day also saves a backup of your cards, progress and settings to `~/.dracosh/backups` (the last 7 are kept); `dracosh restore` brings one back, and backs up what you have first, so a restore can be undone too. To start over, `/settings` → Reset clears your progress only (badges, streak, the dragon) or everything; a backup is made first. Decks and cards you delete wait in `/trash` for 30 days, with their progress. To move to another computer, `dracosh export everything.json` there and `dracosh import everything.json` here; to use Dracosh on two computers at once, put that folder somewhere synced and point `DRACOSH_HOME` at it.
181
+ Everything stays on your machine, in `~/.dracosh`; `dracosh --data` shows what's there. Progress is saved after every answer, so you can quit any time. One quiz runs at a time: a second window on the same data is refused, so the two can't overwrite each other's progress. The first start of each day also saves a backup of your cards, progress and settings to `~/.dracosh/backups` (the last 7 are kept); `dracosh restore` brings one back, and backs up what you have first, so a restore can be undone too. To start over, `/settings` → Reset clears your progress only (badges, streak, the dragon) or everything; a backup is made first. Decks and cards you delete wait in `/trash` for 30 days, with their progress. API keys for AI help and natural voices are kept in `~/.dracosh/keys.json`, readable by you only, and never go into a backup or an export; a key in `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `OPENROUTER_API_KEY` or `ELEVENLABS_API_KEY` is used instead when it's set. Audio from a natural voice is kept in `~/.dracosh/audio`; it isn't backed up, and deleting the folder only means words are fetched again. To move to another computer, `dracosh export everything.json` there and `dracosh import everything.json` here; to use Dracosh on two computers at once, put that folder somewhere synced and point `DRACOSH_HOME` at it.
158
182
 
159
183
  Uninstalling Dracosh (`npm uninstall -g dracosh`) leaves `~/.dracosh` as it is, so installing it again brings everything back. To remove your data too, delete that folder.
160
184
 
@@ -178,7 +202,7 @@ The other languages live next to it in `locales/`, the tour included. `npm test`
178
202
 
179
203
  Coming next, roughly in this order:
180
204
 
181
- - Optional AI help for writing cards, with your own API key or a local model.
205
+ - Optional AI help for writing cards, with your own API key or a local model, and natural voices from ElevenLabs.
182
206
  - Linux and Windows, pronunciation there included.
183
207
 
184
208
  ## License
package/locales/de.json CHANGED
@@ -67,10 +67,14 @@
67
67
  "badges": "↑/↓ blättern · ←/→ Spalte · esc zurück",
68
68
  "keyNames": "beliebige Taste|enter|esc|tab",
69
69
  "addFirst": "enter hinzufügen · esc abbrechen",
70
+ "askList": "enter KI fragen · esc abbrechen",
70
71
  "addMore": "enter hinzufügen · ↑ letzte korrigieren · esc fertig",
71
72
  "addFixing": "enter speichern · esc abbrechen",
72
73
  "addBack": "enter hinzufügen · esc zurück",
73
74
  "pasteReview": "↑/↓ wählen · e korrigieren · x verwerfen · enter {count} hinzufügen · esc abbrechen",
75
+ "aiReview": "Leertaste behalten · a alle · e korrigieren · enter {count} hinzufügen · esc zurück",
76
+ "aiReviewNone": "Leertaste behalten · a alle · e korrigieren · esc zurück",
77
+ "aiWaiting": "esc zurück",
74
78
  "pasteFix": "enter fertig · esc zurück",
75
79
  "grading": "1 oder ← wusste ich nicht · 2 oder → wusste ich",
76
80
  "sessionWaiting": "enter nächste Karte · / Befehle · q beenden",
@@ -88,7 +92,9 @@
88
92
  "trash": "↑/↓ wählen · enter zurückholen · esc zurück",
89
93
  "decksTogether": "Leertaste zusammen üben · → Einstellungen · {choose}",
90
94
  "cards": "tippen zum Suchen · ↑/↓ wählen · enter öffnen · esc zurück",
95
+ "modelPick": "tippen zum Suchen · ↑/↓ wählen · enter bestätigen · esc zurück",
91
96
  "tabPart": "Tab nächster Teil",
97
+ "takeSuggestion": "Tab oder → Vorschlag übernehmen",
92
98
  "decksMixing": "Leertaste dazu/weg · enter nur dieser Stapel · → Einstellungen · esc fertig"
93
99
  },
94
100
  "settings": {
@@ -102,6 +108,10 @@
102
108
  "label": "Deine Sprache",
103
109
  "hint": "die Sprache, die du sprichst: daran sieht Dracosh, welche Kartenseite für dich neu ist"
104
110
  },
111
+ "ai": {
112
+ "label": "KI-Hilfe",
113
+ "hint": "Vorschläge beim Hinzufügen von Karten, mit deinem API-Schlüssel oder einem Modell auf diesem Computer"
114
+ },
105
115
  "rhythm": {
106
116
  "label": "Rhythmus",
107
117
  "hint": "alle paar Minuten eine Karte (das Intervall) oder eine Sitzung: Karten direkt nacheinander, Enter holt die nächste"
@@ -116,7 +126,11 @@
116
126
  },
117
127
  "speak": {
118
128
  "label": "Aussprache",
119
- "hint": "liest das Wort in der Sprache vor, die du lernst, sobald die Antwort steht (macOS-Stimmen)"
129
+ "hint": "liest das Wort in der Sprache vor, die du lernst, sobald die Antwort steht"
130
+ },
131
+ "voice": {
132
+ "label": "Stimme",
133
+ "hint": "wer die Wörter vorliest: macOS-Stimmen oder eine natürliche Stimme von ElevenLabs mit deinem Schlüssel"
120
134
  },
121
135
  "volume": {
122
136
  "label": "Lautstärke",
@@ -276,7 +290,7 @@
276
290
  },
277
291
  "line": {
278
292
  "label": "Neue Karte",
279
- "hint": "Vorderseite = Rückseite, z. B. cat = Katze; Mieze // Beispiel · oder füg eine ganze Liste ein"
293
+ "hint": "cat = Katze; Mieze // Beispiel"
280
294
  },
281
295
  "back": {
282
296
  "label": "Rückseite",
@@ -288,6 +302,7 @@
288
302
  "titleFirst": "Lege deinen ersten Stapel an",
289
303
  "titleCard": "Karte hinzufügen · {deck}",
290
304
  "deckReady": "Dein Stapel „{deck}“ ist bereit. Jetzt seine erste Karte:",
305
+ "deckReadyAi": "Dein Stapel „{deck}“ ist bereit. Enter fragt die KI nach den ersten Wörtern; die Anfrage kannst du vorher ändern.",
291
306
  "duplicateCard": "„{front}“ ist schon in {deck}.",
292
307
  "duplicateDeck": "Es gibt schon einen Stapel namens „{deck}“.",
293
308
  "nameTooLong": "Der Name darf höchstens {max} Zeichen lang sein.",
@@ -295,7 +310,6 @@
295
310
  "needFront": "Eine Karte braucht eine Vorderseite.",
296
311
  "needBack": "Eine Karte braucht eine Antwort.",
297
312
  "preview": {
298
- "pair": "{front} = {back} · danach wählst du, wie gefragt wird",
299
313
  "asks": "{prompt} → ? du tippst {answer}",
300
314
  "both": "{forward} · {backward}",
301
315
  "cloze": {
@@ -344,7 +358,31 @@
344
358
  "languagesSoon": "Sprachen: erkenne ich nach ein paar Karten",
345
359
  "learningLine": "Lernsprache: {language}",
346
360
  "learningGuess": "nur geraten: → ändern",
347
- "lineHintFor": "Vorderseite = Rückseite, z. B. {example} · oder füg eine ganze Liste ein"
361
+ "ways": {
362
+ "type": "Schreib",
363
+ "paste": "Füg ein",
364
+ "pasteWhat": "eine ganze Liste, eine Karte pro Zeile",
365
+ "ai": "Frag die KI",
366
+ "aiExample": "?Küchenwörter"
367
+ },
368
+ "ai": {
369
+ "suggested": "Vorschlag von {provider}",
370
+ "thinking": "{provider} schreibt einen Vorschlag…",
371
+ "example": "Beispielsatz von {provider}",
372
+ "listTitle": "✦ Karten von der KI · {deck}",
373
+ "writing": "{provider} schreibt… bisher {count}",
374
+ "listSummary": {
375
+ "one": "{count} Vorschlag · {kept} behalten",
376
+ "other": "{count} Vorschläge · {kept} behalten"
377
+ },
378
+ "noList": "Es kamen keine Karten zurück: Frag anders oder nimm ein anderes Modell.",
379
+ "writingStart": "{provider} schreibt…",
380
+ "request": "„{request}“",
381
+ "confirm": "Ein weiteres Esc verwirft die behaltenen Karten; jede andere Taste behält sie.",
382
+ "nothingKept": "Noch nichts behalten: Leertaste behält eine Karte, a alle.",
383
+ "listOff": "KI-Hilfe ist aus: Schalte sie unter /settings → KI-Hilfe ein, um eine Liste zu bekommen.",
384
+ "needRequest": "Schreib nach dem ?, worum du die KI bittest, z. B. ?Küchenwörter."
385
+ }
348
386
  },
349
387
  "quiz": {
350
388
  "youWrote": "deine Antwort: ",
@@ -414,7 +452,8 @@
414
452
  "other": "in etwa {count} Monaten"
415
453
  }
416
454
  },
417
- "previewNoImport": "Die Vorschau kann keine Karten importieren; starte dafür dracosh."
455
+ "previewNoImport": "Die Vorschau kann keine Karten importieren; starte dafür dracosh.",
456
+ "fromAi": "✦ Die KI hat diese Karte geschrieben, noch nicht geprüft: /cards"
418
457
  },
419
458
  "dragon": {
420
459
  "stages": {
@@ -1416,6 +1455,8 @@
1416
1455
  "other": "Mit {count} Alltagswörtern anfangen"
1417
1456
  },
1418
1457
  "wordsNote": "{language} → {home}",
1458
+ "ai": "Stapel von der KI vorschlagen lassen",
1459
+ "aiNote": "Karten aus der Liste wählen · API-Schlüssel oder lokales Modell",
1419
1460
  "tour": "Zeig mir, wie es geht",
1420
1461
  "tourNote": {
1421
1462
  "one": "{count} kurze Karte dazu, wie Dracosh funktioniert",
@@ -1429,6 +1470,7 @@
1429
1470
  "noWordsHome": "Fertige Wörter gibt es für Paare aus diesen Sprachen: {languages}. {language} ist noch nicht dabei, also fang mit einem eigenen Stapel an."
1430
1471
  },
1431
1472
  "firstWordsDeck": "{language}: erste Wörter",
1473
+ "aiRequest": "{count} Alltagswörter: {language} → {home}",
1432
1474
  "suggested": "Vorschlag"
1433
1475
  },
1434
1476
  "importScreen": {
@@ -1492,8 +1534,14 @@
1492
1534
  "one": "{deck} · {count} Karte",
1493
1535
  "other": "{deck} · {count} Karten"
1494
1536
  },
1537
+ "toCheck": {
1538
+ "one": "✦ {count} zu prüfen",
1539
+ "other": "✦ {count} zu prüfen"
1540
+ },
1495
1541
  "addRow": "+ Karten hinzufügen",
1496
1542
  "undoRow": "↶ „{card}“ zurückholen",
1543
+ "confirmRow": "Stimmt",
1544
+ "checkRow": "Mit der KI prüfen",
1497
1545
  "editRow": "Korrigieren",
1498
1546
  "moveRow": "In einen anderen Stapel verschieben",
1499
1547
  "deleteRow": "Löschen",
@@ -1514,6 +1562,118 @@
1514
1562
  "tourNot": "Die Karten der Tour lassen sich nicht ändern. /add legt einen eigenen Stapel an.",
1515
1563
  "editHint": "Vorderseite = Rückseite; andere Antwort // Beispiel",
1516
1564
  "whichDeck": "Karten welches Stapels?",
1517
- "deleteNo": "Behalten"
1565
+ "deleteNo": "Behalten",
1566
+ "aiNote": "✦ Von der KI geschrieben: Prüf die Karte, bevor du sie lernst.",
1567
+ "confirmed": "Geprüft: {card}",
1568
+ "checking": "{provider} prüft die Karte…",
1569
+ "checkOk": "{provider} findet keinen Fehler: {card}",
1570
+ "checkFix": "{provider} schlägt eine Korrektur vor:",
1571
+ "useFix": "Korrektur übernehmen",
1572
+ "keepMine": "Unverändert lassen",
1573
+ "checkUnclear": "Die Antwort von {provider} war nicht lesbar. Versuch es noch mal."
1574
+ },
1575
+ "ai": {
1576
+ "customName": "Andere",
1577
+ "title": "KI-Hilfe",
1578
+ "note": "Optional: Die KI schlägt beim Hinzufügen von Karten Übersetzungen und Beispiele vor. Gesendet werden nur die Karte, die du gerade schreibst, und einige aus demselben Stapel.",
1579
+ "noteWelcome": "Wähl zuerst, wo die KI läuft, danach schlägt sie deinen ersten Stapel vor. Gesendet werden nur die Anfrage und ein paar Karten des Stapels.",
1580
+ "now": "Jetzt: {label}",
1581
+ "current": "aktuell",
1582
+ "free": "kostenlos",
1583
+ "paid": "kostenpflichtig",
1584
+ "yourServer": "dein Server",
1585
+ "small": "klein, günstig",
1586
+ "turnOff": "KI ausschalten",
1587
+ "turnedOff": "KI-Hilfe ist aus. Gespeicherte Schlüssel bleiben: Um einen zu löschen, wähle hier wieder seinen Anbieter.",
1588
+ "providers": {
1589
+ "anthropic": "Claude-Modelle, eigener API-Schlüssel",
1590
+ "openai": "GPT-Modelle, eigener API-Schlüssel",
1591
+ "openrouter": "viele Modelle mit einem Schlüssel",
1592
+ "ollama": "kostenlos, läuft auf diesem Computer",
1593
+ "lmstudio": "kostenlos, läuft auf diesem Computer",
1594
+ "custom": "jede OpenAI-kompatible Adresse"
1595
+ },
1596
+ "urlTitle": "Serveradresse",
1597
+ "urlNote": "Die Adresse einer OpenAI-kompatiblen API, z. B. http://localhost:8080/v1",
1598
+ "badUrl": "Das ist keine Adresse: Sie muss mit http:// oder https:// beginnen.",
1599
+ "keyTitle": "API-Schlüssel für {provider}",
1600
+ "keyTitleCustom": "API-Schlüssel (nur falls der Server einen verlangt)",
1601
+ "keyNote": "Einen Schlüssel bekommst du auf {site}; der Anbieter berechnet dir die Nutzung. Füge ihn hier ein: Er bleibt in deinem Dracosh-Ordner, nur für dich lesbar, und landet nie in Sicherungen oder Exporten. Alternativ setzt du {env} in deiner Shell.",
1602
+ "keyOptional": "Falls der Server einen Schlüssel verlangt, füge ihn ein, sonst drücke Enter.",
1603
+ "needKey": "Füge zuerst den Schlüssel ein (Esc geht zurück).",
1604
+ "keepKey": "Gespeicherten Schlüssel verwenden",
1605
+ "newKey": "Neuen Schlüssel einfügen",
1606
+ "forgetKey": "Gespeicherten Schlüssel löschen",
1607
+ "keyForgotten": "Der gespeicherte Schlüssel ({provider}) ist gelöscht.",
1608
+ "keyFromEnv": "Schlüssel aus {env}.",
1609
+ "localNote": "Verfügbare Modelle unter {url}. Ein kleines Modell ohne Denkphase antwortet am schnellsten.",
1610
+ "modelNote": "Ein kleines, schnelles Modell reicht und kostet wenig.",
1611
+ "noModels": "Keine Modelle zur Auswahl: Gib den Namen eines Modells ein.",
1612
+ "noModelsLocal": "Noch keine Modelle heruntergeladen. Ollama: Führe ollama pull llama3.2 im Terminal aus; LM Studio: Lade eines in der App herunter. Dann komm hierher zurück.",
1613
+ "modelTitle": "Welches Modell?",
1614
+ "loadingModels": "Modelle werden geladen ({provider})…",
1615
+ "typeModel": "Modellnamen eingeben…",
1616
+ "modelNameNote": "Der Name des Modells, wie {provider} ihn schreibt.",
1617
+ "needModel": "Gib zuerst den Modellnamen ein (Esc geht zurück).",
1618
+ "checking": "Prüfe {label}…",
1619
+ "ready": "KI-Hilfe ist an: ✦ {label}",
1620
+ "failedTitle": "{label} funktioniert nicht",
1621
+ "tryAgain": "Noch einmal versuchen",
1622
+ "otherModel": "Anderes Modell wählen",
1623
+ "otherKey": "Anderen Schlüssel verwenden",
1624
+ "errors": {
1625
+ "noKey": "Noch kein Schlüssel für {provider}: Füge ihn unter /settings → KI-Hilfe hinzu oder setze {env}.",
1626
+ "badKey": "{provider} hat den Schlüssel nicht angenommen. Prüfe ihn oder füge einen neuen ein.",
1627
+ "noModel": "{provider} hat kein Modell namens {model}.",
1628
+ "noApi": "Unter {url} antwortet keine OpenAI-kompatible API: Prüfe die Adresse (oft endet sie auf /v1).",
1629
+ "rateLimit": "{provider} meldet zu viele Anfragen: Warte kurz und versuche es erneut.",
1630
+ "noCredit": "{provider}: Dein Guthaben ist aufgebraucht. Lade es auf der Seite des Anbieters auf oder wähl in /settings → KI-Hilfe ein kostenloses lokales Modell.",
1631
+ "offline": "{provider} ist nicht erreichbar ({url}). Bist du online?",
1632
+ "offlineLocal": "Unter {url} antwortet nichts: Läuft {provider}?",
1633
+ "timeout": "{provider} hat zu lange für die Antwort gebraucht.",
1634
+ "server": "{provider} hat ein Problem auf seiner Seite ({status}). Versuche es später noch einmal.",
1635
+ "failed": "{provider} hat die Anfrage abgelehnt ({status}): {detail}",
1636
+ "notJson": "die Antwort war kein JSON"
1637
+ }
1638
+ },
1639
+ "voice": {
1640
+ "title": "Stimme",
1641
+ "note": "Die Stimme, die Wörter vorliest, wenn die Aussprache an ist. ElevenLabs ist optional: Jedes Wort wird einmal erzeugt und auf diesem Computer gespeichert, du zahlst also einmal pro neuer Karte, nicht pro Wiederholung.",
1642
+ "now": "Jetzt: {label}",
1643
+ "system": "macOS-Stimmen",
1644
+ "systemNote": "kostenlos, eingebaut",
1645
+ "elevenNote": "natürliche Stimmen, dein Schlüssel, Abrechnung pro Zeichen",
1646
+ "systemSet": "Die Wörter liest wieder eine macOS-Stimme vor.",
1647
+ "keyTitle": "ElevenLabs-Schlüssel",
1648
+ "keyNote": "Einen Schlüssel bekommst du auf {site}; ElevenLabs berechnet dir die Nutzung. Füge ihn hier ein: Er bleibt in deinem Dracosh-Ordner, nur für dich lesbar, und landet nie in Sicherungen oder Exporten. Alternativ setzt du {env} in deiner Shell.",
1649
+ "pickTitle": "Stimme wählen",
1650
+ "pickNote": "Eine Stimme liest alle deine Stapel vor, in jeder Sprache, die sie spricht. Bevor sie gespeichert wird, hörst du eine kurze Probe.",
1651
+ "loading": "Stimmen werden von ElevenLabs geladen…",
1652
+ "noVoices": "Dein ElevenLabs-Konto hat keine Stimmen zur Auswahl. Füg auf elevenlabs.io eine hinzu und komm dann zurück.",
1653
+ "current": "aktuell",
1654
+ "checking": "Probe wird mit {label} vorgelesen…",
1655
+ "ready": "Die Wörter liest jetzt {label} vor. Sprachen, die diese Stimme nicht kann, bleiben bei den macOS-Stimmen.",
1656
+ "readyOn": "Aussprache ist an: Die Wörter liest {label} vor. Sprachen, die diese Stimme nicht kann, bleiben bei den macOS-Stimmen.",
1657
+ "failedTitle": "{label} funktioniert nicht",
1658
+ "otherVoice": "Andere Stimme wählen",
1659
+ "sample": "Hallo! Ich lese dir deine Wörter vor.",
1660
+ "short": {
1661
+ "noKey": "Kein ElevenLabs-Schlüssel: Füg hier einen ein oder setz {env}.",
1662
+ "badKey": "ElevenLabs hat den Schlüssel nicht akzeptiert.",
1663
+ "noCredit": "ElevenLabs: Dein Guthaben ist aufgebraucht. Lade es auf der Seite von ElevenLabs auf.",
1664
+ "noVoice": "ElevenLabs hat diese Stimme nicht mehr: Wähl eine andere."
1665
+ },
1666
+ "errors": {
1667
+ "noKey": "Kein ElevenLabs-Schlüssel: Füg einen in /settings → Stimme hinzu oder setz {env}. Bis dahin lesen macOS-Stimmen vor.",
1668
+ "badKey": "ElevenLabs hat den Schlüssel nicht akzeptiert. Füg in /settings → Stimme einen neuen ein. Bis dahin lesen macOS-Stimmen vor.",
1669
+ "noCredit": "ElevenLabs: Dein Guthaben ist aufgebraucht. Lade es auf der Seite von ElevenLabs auf. Bis dahin lesen macOS-Stimmen vor.",
1670
+ "noVoice": "ElevenLabs hat diese Stimme nicht mehr: Wähl in /settings → Stimme eine andere. Bis dahin lesen macOS-Stimmen vor.",
1671
+ "rateLimit": "ElevenLabs meldet zu viele Anfragen: Warte kurz und versuch es noch einmal.",
1672
+ "offline": "ElevenLabs ist nicht erreichbar. Bist du online?",
1673
+ "timeout": "ElevenLabs hat zu lange gebraucht.",
1674
+ "server": "ElevenLabs hat ein Problem auf seiner Seite ({status}). Versuch es später noch einmal.",
1675
+ "failed": "ElevenLabs hat die Anfrage abgelehnt ({status}): {detail}",
1676
+ "empty": "die Aufnahme kam leer zurück"
1677
+ }
1518
1678
  }
1519
1679
  }
package/locales/en.json CHANGED
@@ -67,10 +67,14 @@
67
67
  "badges": "↑/↓ browse · ←/→ column · esc back",
68
68
  "keyNames": "any key|enter|esc|tab",
69
69
  "addFirst": "enter add · esc cancel",
70
+ "askList": "enter ask AI · esc cancel",
70
71
  "addMore": "enter add · ↑ fix the last one · esc done",
71
72
  "addFixing": "enter save · esc leave it",
72
73
  "addBack": "enter add · esc back",
73
74
  "pasteReview": "↑/↓ move · e fix · x drop · enter add {count} · esc cancel",
75
+ "aiReview": "space keep · a keep all · e fix · enter add {count} · esc cancel",
76
+ "aiReviewNone": "space keep · a keep all · e fix · esc cancel",
77
+ "aiWaiting": "esc cancel",
74
78
  "pasteFix": "enter done · esc back",
75
79
  "grading": "1 or ← didn't know · 2 or → knew it",
76
80
  "sessionWaiting": "enter next card · / commands · q quit",
@@ -88,7 +92,9 @@
88
92
  "trash": "↑/↓ choose · enter bring back · esc back",
89
93
  "decksTogether": "space practise together · → settings · {choose}",
90
94
  "cards": "type to search · ↑/↓ choose · enter open · esc back",
95
+ "modelPick": "type to search · ↑/↓ choose · enter confirm · esc back",
91
96
  "tabPart": "tab next part",
97
+ "takeSuggestion": "tab or → take the suggestion",
92
98
  "decksMixing": "space add/remove · enter only this deck · → settings · esc done"
93
99
  },
94
100
  "settings": {
@@ -102,6 +108,10 @@
102
108
  "label": "Your language",
103
109
  "hint": "the language you speak: it tells which side of a card is new to you"
104
110
  },
111
+ "ai": {
112
+ "label": "AI help",
113
+ "hint": "suggestions while you add cards, from your API key or a model on this computer"
114
+ },
105
115
  "rhythm": {
106
116
  "label": "Rhythm",
107
117
  "hint": "a card every few minutes (the interval), or a session: one card after another, Enter for the next"
@@ -116,7 +126,11 @@
116
126
  },
117
127
  "speak": {
118
128
  "label": "Read aloud",
119
- "hint": "reads the word aloud in the language you're learning, once the answer is out (macOS voices)"
129
+ "hint": "reads the word aloud in the language you're learning, once the answer is out"
130
+ },
131
+ "voice": {
132
+ "label": "Voice",
133
+ "hint": "who reads the words: macOS voices, or a natural voice from ElevenLabs with your own key"
120
134
  },
121
135
  "volume": {
122
136
  "label": "Volume",
@@ -273,7 +287,7 @@
273
287
  },
274
288
  "line": {
275
289
  "label": "New card",
276
- "hint": "front = back, like kot = cat; kitty // Mój kot śpi. · or paste a whole list"
290
+ "hint": "kot = cat; kitty // Mój kot śpi."
277
291
  },
278
292
  "back": {
279
293
  "label": "Back",
@@ -285,6 +299,7 @@
285
299
  "titleFirst": "Start your first deck",
286
300
  "titleCard": "Add a card · {deck}",
287
301
  "deckReady": "Your deck \"{deck}\" is ready. Now its first card:",
302
+ "deckReadyAi": "Your deck \"{deck}\" is ready. Enter asks AI for its first words; you can change the request first.",
288
303
  "duplicateCard": "\"{front}\" is already in {deck}.",
289
304
  "duplicateDeck": "There is already a deck called \"{deck}\".",
290
305
  "nameTooLong": "Keep the name to {max} characters or fewer.",
@@ -292,7 +307,6 @@
292
307
  "needFront": "A card needs a front.",
293
308
  "needBack": "A card needs an answer.",
294
309
  "preview": {
295
- "pair": "{front} = {back} · you'll pick how it's asked after this card",
296
310
  "asks": "{prompt} → ? you type {answer}",
297
311
  "both": "{forward} · {backward}",
298
312
  "cloze": {
@@ -341,7 +355,31 @@
341
355
  "languagesSoon": "Languages: I'll tell after a few cards",
342
356
  "learningLine": "Learning: {language}",
343
357
  "learningGuess": "that is a guess: → to change it",
344
- "lineHintFor": "front = back, like {example} · or paste a whole list"
358
+ "ways": {
359
+ "type": "Type",
360
+ "paste": "Paste",
361
+ "pasteWhat": "a whole list, one card per line",
362
+ "ai": "Ask AI",
363
+ "aiExample": "?kitchen words"
364
+ },
365
+ "ai": {
366
+ "suggested": "suggestion from {provider}",
367
+ "thinking": "{provider} is writing a suggestion…",
368
+ "example": "example sentence from {provider}",
369
+ "listTitle": "✦ Cards from AI · {deck}",
370
+ "writing": "{provider} is writing… {count} so far",
371
+ "listSummary": {
372
+ "one": "{count} suggestion · {kept} kept",
373
+ "other": "{count} suggestions · {kept} kept"
374
+ },
375
+ "noList": "No cards came back. Try asking another way, or another model.",
376
+ "writingStart": "{provider} is writing…",
377
+ "request": "“{request}”",
378
+ "confirm": "Esc again drops the cards you kept. Any other key keeps them.",
379
+ "nothingKept": "Nothing kept yet: space keeps a card, a keeps them all.",
380
+ "listOff": "AI help is off: turn it on in /settings → AI help to ask for a list.",
381
+ "needRequest": "Type what to ask AI for after the ?, like ?kitchen words."
382
+ }
345
383
  },
346
384
  "quiz": {
347
385
  "youWrote": "you wrote ",
@@ -411,7 +449,8 @@
411
449
  "other": "in about {count} months"
412
450
  }
413
451
  },
414
- "previewNoImport": "The preview can't import cards; run dracosh for that."
452
+ "previewNoImport": "The preview can't import cards; run dracosh for that.",
453
+ "fromAi": "✦ AI wrote this card and it isn't checked yet: /cards"
415
454
  },
416
455
  "dragon": {
417
456
  "stages": {
@@ -1399,6 +1438,8 @@
1399
1438
  "other": "Start with {count} everyday words"
1400
1439
  },
1401
1440
  "wordsNote": "{language} → {home}",
1441
+ "ai": "Let AI suggest my first deck",
1442
+ "aiNote": "you pick the cards · API key or local model",
1402
1443
  "tour": "Show me how it works",
1403
1444
  "tourNote": {
1404
1445
  "one": "{count} short card on how Dracosh works",
@@ -1412,6 +1453,7 @@
1412
1453
  "noWordsHome": "Ready-made words are for pairs of these: {languages}. {language} isn't one yet, so start with a deck of your own."
1413
1454
  },
1414
1455
  "firstWordsDeck": "{language}: first words",
1456
+ "aiRequest": "{count} everyday words: {language} → {home}",
1415
1457
  "suggested": "suggested"
1416
1458
  },
1417
1459
  "importScreen": {
@@ -1475,8 +1517,14 @@
1475
1517
  "one": "{deck} · {count} card",
1476
1518
  "other": "{deck} · {count} cards"
1477
1519
  },
1520
+ "toCheck": {
1521
+ "one": "✦ {count} to check",
1522
+ "other": "✦ {count} to check"
1523
+ },
1478
1524
  "addRow": "+ Add cards",
1479
1525
  "undoRow": "↶ Bring back \"{card}\"",
1526
+ "confirmRow": "Looks right",
1527
+ "checkRow": "Check with AI",
1480
1528
  "editRow": "Fix",
1481
1529
  "moveRow": "Move to another deck",
1482
1530
  "deleteRow": "Delete",
@@ -1497,6 +1545,118 @@
1497
1545
  "tourNot": "The tour's cards can't be changed. /add starts a deck of your own.",
1498
1546
  "editHint": "front = back; other answer // example",
1499
1547
  "whichDeck": "Which deck's cards?",
1500
- "deleteNo": "Keep it"
1548
+ "deleteNo": "Keep it",
1549
+ "aiNote": "✦ This card was written by AI: check it before you learn it.",
1550
+ "confirmed": "Checked: {card}",
1551
+ "checking": "{provider} is checking the card…",
1552
+ "checkOk": "{provider} sees nothing wrong: {card}",
1553
+ "checkFix": "{provider} suggests a fix:",
1554
+ "useFix": "Use the fix",
1555
+ "keepMine": "Keep it as is",
1556
+ "checkUnclear": "{provider}'s answer couldn't be read. Try again."
1557
+ },
1558
+ "ai": {
1559
+ "customName": "Other",
1560
+ "title": "AI help",
1561
+ "note": "Optional: AI suggests translations and examples while you add cards. Only the card you're writing and a few from the same deck are sent.",
1562
+ "noteWelcome": "First pick where AI runs, then it suggests your first deck. Only your request and a few cards of the deck are sent.",
1563
+ "now": "Now: {label}",
1564
+ "current": "current",
1565
+ "free": "free",
1566
+ "paid": "paid",
1567
+ "yourServer": "your server",
1568
+ "small": "small, cheap",
1569
+ "turnOff": "Turn AI off",
1570
+ "turnedOff": "AI help is off. Saved keys stay: to remove one, pick its provider here again.",
1571
+ "providers": {
1572
+ "anthropic": "Claude models, your API key",
1573
+ "openai": "GPT models, your API key",
1574
+ "openrouter": "many models with one key",
1575
+ "ollama": "free, runs on this computer",
1576
+ "lmstudio": "free, runs on this computer",
1577
+ "custom": "any OpenAI-compatible address"
1578
+ },
1579
+ "urlTitle": "Server address",
1580
+ "urlNote": "The address of an OpenAI-compatible API, for example http://localhost:8080/v1",
1581
+ "badUrl": "That isn't an address: it should start with http:// or https://",
1582
+ "keyTitle": "{provider} API key",
1583
+ "keyTitleCustom": "API key (only if the server needs one)",
1584
+ "keyNote": "Get a key at {site}; the provider bills you for what you use. Paste it here: it's kept in your Dracosh folder, readable by you only, and never goes into backups or exports. Or set {env} in your shell instead.",
1585
+ "keyOptional": "If the server asks for a key, paste it; otherwise press Enter.",
1586
+ "needKey": "Paste the key first (Esc goes back).",
1587
+ "keepKey": "Use the saved key",
1588
+ "newKey": "Paste a new key",
1589
+ "forgetKey": "Forget the saved key",
1590
+ "keyForgotten": "The saved key ({provider}) is gone.",
1591
+ "keyFromEnv": "Using the key from {env}.",
1592
+ "localNote": "Models available at {url}. A small model without thinking answers fastest.",
1593
+ "modelNote": "A small, fast model is enough and costs little.",
1594
+ "noModels": "No models to pick: type a model's name.",
1595
+ "noModelsLocal": "No models downloaded yet. Ollama: run ollama pull llama3.2 in a terminal; LM Studio: download one in the app. Then come back here.",
1596
+ "modelTitle": "Which model?",
1597
+ "loadingModels": "Getting the models ({provider})…",
1598
+ "typeModel": "Type a model name…",
1599
+ "modelNameNote": "The model's name as {provider} writes it.",
1600
+ "needModel": "Type the model's name first (Esc goes back).",
1601
+ "checking": "Checking {label}…",
1602
+ "ready": "AI help is on: ✦ {label}",
1603
+ "failedTitle": "{label} isn't working",
1604
+ "tryAgain": "Try again",
1605
+ "otherModel": "Pick another model",
1606
+ "otherKey": "Use another key",
1607
+ "errors": {
1608
+ "noKey": "No {provider} key yet: add one in /settings → AI help, or set {env}.",
1609
+ "badKey": "{provider} didn't accept the key. Check it, or paste a new one.",
1610
+ "noModel": "{provider} has no model called {model}.",
1611
+ "noApi": "Nothing at {url} answers like an OpenAI-compatible API: check the address (often it ends in /v1).",
1612
+ "rateLimit": "{provider} says too many requests: wait a moment and try again.",
1613
+ "noCredit": "{provider} says the account is out of credit: top it up on its site, or pick a free local model in /settings → AI help.",
1614
+ "offline": "Can't reach {provider} ({url}). Are you online?",
1615
+ "offlineLocal": "Nothing answers at {url}: is {provider} running?",
1616
+ "timeout": "{provider} took too long to answer.",
1617
+ "server": "{provider} had a problem on its side ({status}). Try again later.",
1618
+ "failed": "{provider} refused the request ({status}): {detail}",
1619
+ "notJson": "the answer wasn't JSON"
1620
+ }
1621
+ },
1622
+ "voice": {
1623
+ "title": "Voice",
1624
+ "note": "The voice that reads words aloud when Read aloud is on. ElevenLabs is optional: each word is generated once and kept on this computer, so you pay once per new card, not per review.",
1625
+ "now": "Now: {label}",
1626
+ "system": "macOS voices",
1627
+ "systemNote": "free, built in",
1628
+ "elevenNote": "natural voices, your own key, paid per character",
1629
+ "systemSet": "Words are read by macOS voices again.",
1630
+ "keyTitle": "ElevenLabs key",
1631
+ "keyNote": "Get a key at {site}; ElevenLabs bills you for what you use. Paste it here: it's kept in your Dracosh folder, readable by you only, and never goes into backups or exports. Or set {env} in your shell instead.",
1632
+ "pickTitle": "Pick a voice",
1633
+ "pickNote": "One voice reads all your decks, in every language it speaks. You'll hear a short sample before it's saved.",
1634
+ "loading": "Loading voices from ElevenLabs…",
1635
+ "noVoices": "Your ElevenLabs account has no voices to pick. Add one on elevenlabs.io, then come back.",
1636
+ "current": "current",
1637
+ "checking": "Reading a sample with {label}…",
1638
+ "ready": "Words are read by {label}. Languages it can't speak stay with macOS voices.",
1639
+ "readyOn": "Read aloud is on: words are read by {label}. Languages it can't speak stay with macOS voices.",
1640
+ "failedTitle": "{label} isn't working",
1641
+ "otherVoice": "Pick another voice",
1642
+ "sample": "Hello! I'll read your words aloud.",
1643
+ "short": {
1644
+ "noKey": "No ElevenLabs key: paste one here, or set {env}.",
1645
+ "badKey": "ElevenLabs didn't accept the key.",
1646
+ "noCredit": "ElevenLabs says the account is out of credit: top it up on its site.",
1647
+ "noVoice": "ElevenLabs no longer has this voice: pick another."
1648
+ },
1649
+ "errors": {
1650
+ "noKey": "No ElevenLabs key: add one in /settings → Voice, or set {env}. Words are read by macOS voices for now.",
1651
+ "badKey": "ElevenLabs didn't accept the key. Paste a new one in /settings → Voice. Words are read by macOS voices for now.",
1652
+ "noCredit": "ElevenLabs says the account is out of credit: top it up on its site. Words are read by macOS voices for now.",
1653
+ "noVoice": "ElevenLabs no longer has this voice: pick another in /settings → Voice. Words are read by macOS voices for now.",
1654
+ "rateLimit": "ElevenLabs says too many requests: wait a moment and try again.",
1655
+ "offline": "Can't reach ElevenLabs. Are you online?",
1656
+ "timeout": "ElevenLabs took too long to answer.",
1657
+ "server": "ElevenLabs had a problem on its side ({status}). Try again later.",
1658
+ "failed": "ElevenLabs refused the request ({status}): {detail}",
1659
+ "empty": "the audio came back empty"
1660
+ }
1501
1661
  }
1502
1662
  }