dracosh 0.6.0 → 0.7.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
@@ -29,7 +29,7 @@ It's made for people who live in a terminal or spend most of the day at a comput
29
29
  - A pixel dragon that hatches from an egg, evolves over a year of streaks, blinks, and falls asleep if you ignore it
30
30
  - 8-bit sound effects, generated from code
31
31
  - Now and then, a short tip about Dracosh while you wait for the next card
32
- - Speaks English, Polish, German, French and Ukrainian: it follows your system's language, and `/settings` switches it
32
+ - Speaks English, Polish, German, French and Ukrainian: the first start asks which one, and `/settings` switches it
33
33
 
34
34
  ## Install
35
35
 
@@ -39,7 +39,14 @@ You need Node 22.15 or newer.
39
39
  npm install -g dracosh
40
40
  ```
41
41
 
42
- A fresh install starts with a short "Getting started" deck, in the app's language: a tour where every card tells you what to type and shows you one more thing Dracosh can do. When you're through, `/add` starts your own deck and the tour makes room for it. Already have cards somewhere else? See [Import and export](#import-and-export).
42
+ On the first start the dragon hatches, and Dracosh asks three things: the language it should speak, the language you speak and the one you're learning. Then you pick how to begin:
43
+
44
+ - a short tour, where every card tells you what to type and shows you one more thing Dracosh can do
45
+ - 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)
46
+ - cards you already have, from Anki, a CSV or a text file (`/import`)
47
+ - a deck of your own, in `/add`
48
+
49
+ The first words or a deck of your own take the tour's place. Already have cards somewhere else? See [Import and export](#import-and-export).
43
50
 
44
51
  Want a look first? `dracosh --preview` shows every screen and animation on made-up data.
45
52
 
@@ -62,10 +69,13 @@ Type the answer and press Enter. Not sure, or the answer is a whole sentence? Pr
62
69
  | Command | What it does |
63
70
  | --- | --- |
64
71
  | `/add` | add cards to one of your decks, or start a new deck (one line per card, ↑ fixes the last one) |
65
- | `/decks` | switch to another deck (Dracosh remembers it), start a new one, or press → to change how a deck is asked and which languages it's in |
72
+ | `/import` | import cards from an Anki package, a CSV or a text file: type its path or drag the file in |
73
+ | `/decks` | switch to another deck (Dracosh remembers it), practise several together (space marks them, or pick All decks), start a new one, or press → to change how a deck is asked, which languages it's in, its name, to merge it into another, or to delete it |
74
+ | `/cards` | the deck's cards: type to search, Enter to fix a card, move it to another deck or delete it |
75
+ | `/trash` | decks and cards you deleted, kept for 30 days with their progress: Enter brings one back |
66
76
  | `/hint` | reveal one more letter |
67
77
  | `/correct` | your answer was right after all; after a yes it's accepted from now on |
68
- | `/settings` | language, rhythm (a card every few minutes, or a study session), interval, daily goal, sound, pronunciation, quiet hours, weekends, tips, and a reset |
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 |
69
79
  | `/stats` | streak and a calendar of your month |
70
80
  | `/badges` | all badges and how to get them |
71
81
  | `/companion` | your dragon, its element and the forms ahead |
@@ -90,6 +100,8 @@ dracosh import words.csv --deck "Spanish"
90
100
 
91
101
  An import reads the file, then shows what it found before anything is saved: how it split the columns, which deck the cards go into, the new cards, the ones already there, and every line it can't use, with its line number. Cards already in the deck with other answers are listed as they are now and as the file has them, and you decide whether they're updated (their progress stays). Answers listed the way Anki and Quizlet decks often have them ("cat, kitty") can be taken as separate answers. A new deck asks which way to quiz, as in `/add`, and the last question says exactly what will be added and updated. When you already have cards, a backup is taken first, so `dracosh restore 1` undoes an import. Outside a terminal nothing is written without `--yes`: the preview ends with the command that imports for real. For scripts, `--update` takes the file's version of cards already there and `--split` splits listed answers.
92
102
 
103
+ `/import` does the same inside the quiz: type the file's path or drag the file into the terminal, answer the same questions on screen, and the new deck is the one you practise next. Full backups (`.json`), other encodings (`--encoding`) and `--anki` stay with `dracosh import`.
104
+
93
105
  A header row (`front,back,example`, `term;definition`) is used to pick the columns, in any order. A file that isn't UTF-8 is never guessed at: Dracosh shows its first line read each likely way and asks for `--encoding`.
94
106
 
95
107
  An Anki package (`.apkg`, or a whole collection's `.colpkg`) goes the same way, whatever language Anki was set up in. Cloze notes become cards with gaps (with a gap's hint), a deck with reverse cards asks both ways, the front is what the note's card asks, and the answer and an example are found by the fields' names (Meaning, English, Sentence…). Tags come along; subdecks become decks of their own. Pictures and sounds stay out, cards that are only a picture or a sound are listed as left out, and progress in Anki isn't brought over.
@@ -142,7 +154,9 @@ Fix the lines it lists, and tell me the command to import it for real.
142
154
 
143
155
  ## Your data
144
156
 
145
- 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. 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.
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.
158
+
159
+ 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.
146
160
 
147
161
  Sounds currently play on macOS only.
148
162
 
@@ -164,7 +178,6 @@ The other languages live next to it in `locales/`, the tour included. `npm test`
164
178
 
165
179
  Coming next, roughly in this order:
166
180
 
167
- - Decks and cards in the app: browse, edit and delete with undo, plus a welcome flow for new users.
168
181
  - Optional AI help for writing cards, with your own API key or a local model.
169
182
  - Linux and Windows, pronunciation there included.
170
183
 
package/locales/de.json CHANGED
@@ -2,7 +2,10 @@
2
2
  "commands": {
3
3
  "hint": "Noch einen Buchstaben (die Karte kommt früher wieder)",
4
4
  "add": "Karten hinzufügen oder einen neuen Stapel anlegen",
5
+ "import": "Karten aus Anki, einer CSV- oder Textdatei importieren",
6
+ "cards": "Karten des Stapels durchsuchen, korrigieren, verschieben oder löschen",
5
7
  "decks": "Stapel wechseln oder einen neuen anlegen",
8
+ "trash": "Gelöschte Stapel und Karten: zurückholen",
6
9
  "settings": "Sprache, Rhythmus, Intervall, Ruhezeiten, Ton, Ziel, Tipps",
7
10
  "stats": "Serie, Monatskalender und Abzeichen im Überblick",
8
11
  "badges": "Alle Abzeichen und wie man sie freischaltet",
@@ -76,15 +79,29 @@
76
79
  "addName": "enter anlegen · esc abbrechen",
77
80
  "confirm": "{yes} ja · {no} nein",
78
81
  "languagePick": "tippen zum Suchen · ↑/↓ wählen · enter bestätigen · ← zurück",
79
- "choiceLeft": "{choose} · ← zurück"
82
+ "choiceLeft": "{choose} · ← zurück",
83
+ "importPath": "enter Datei lesen · esc abbrechen",
84
+ "importDone": "enter weiter",
85
+ "importName": "enter weiter · esc zurück",
86
+ "rename": "enter speichern · esc abbrechen",
87
+ "undo": "u rückgängig",
88
+ "trash": "↑/↓ wählen · enter zurückholen · esc zurück",
89
+ "decksTogether": "Leertaste zusammen üben · → Einstellungen · {choose}",
90
+ "cards": "tippen zum Suchen · ↑/↓ wählen · enter öffnen · esc zurück",
91
+ "tabPart": "Tab nächster Teil",
92
+ "decksMixing": "Leertaste dazu/weg · enter nur dieser Stapel · → Einstellungen · esc fertig"
80
93
  },
81
94
  "settings": {
82
95
  "title": "Einstellungen",
83
96
  "rows": {
84
97
  "language": {
85
- "label": "Sprache",
98
+ "label": "App-Sprache",
86
99
  "hint": "die Sprache von Dracosh; die Tour wechselt mit"
87
100
  },
101
+ "homeLanguage": {
102
+ "label": "Deine Sprache",
103
+ "hint": "die Sprache, die du sprichst: daran sieht Dracosh, welche Kartenseite für dich neu ist"
104
+ },
88
105
  "rhythm": {
89
106
  "label": "Rhythmus",
90
107
  "hint": "alle paar Minuten eine Karte (das Intervall) oder eine Sitzung: Karten direkt nacheinander, Enter holt die nächste"
@@ -121,6 +138,10 @@
121
138
  "label": "Ruhezeiten",
122
139
  "hint": "in diesen Stunden keine Fragen, Töne oder Hinweise"
123
140
  },
141
+ "dragonLook": {
142
+ "label": "Aussehen des Drachen",
143
+ "hint": "sein Element vom Würfel; Enter holt den grünen Standarddrachen zurück"
144
+ },
124
145
  "reset": {
125
146
  "label": "Zurücksetzen",
126
147
  "hint": "neu anfangen: nur der Fortschritt oder alles (vorher wird gesichert)"
@@ -142,7 +163,14 @@
142
163
  "session": "Sitzung",
143
164
  "session-10": "Sitzung · 10 Karten",
144
165
  "session-20": "Sitzung · 20 Karten"
145
- }
166
+ },
167
+ "notSet": "nicht gewählt",
168
+ "homeTitle": "Welche Sprache sprichst du?",
169
+ "lookQuestion": "Zurück zum grünen Standarddrachen?",
170
+ "lookNote": "Sein Element ({element}) ist dann für immer weg: Der Würfel rollt nie wieder.",
171
+ "lookYes": "Standardaussehen",
172
+ "lookNo": "Element behalten",
173
+ "lookDropped": "Dein Drache sieht wieder aus wie am Anfang."
146
174
  },
147
175
  "count": {
148
176
  "cards": {
@@ -201,7 +229,44 @@
201
229
  "languagesRow": "Sprachen",
202
230
  "detectRow": "Aus den Karten erkennen",
203
231
  "learningRow": "Lernsprache",
204
- "learningShort": "Lernsprache: {language}"
232
+ "learningShort": "Lernsprache: {language}",
233
+ "renameRow": "Umbenennen",
234
+ "deleteRow": "Löschen",
235
+ "renameTitle": "Neuer Name für „{deck}“",
236
+ "renamed": "„{from}“ heißt jetzt „{to}“.",
237
+ "deleteQuestion": "Den Stapel „{deck}“ mit {cards} löschen?",
238
+ "deleteNote": "Er kommt mit seinem Fortschritt in den Papierkorb: /trash holt ihn {days} Tage lang zurück.",
239
+ "deleteYes": "Löschen",
240
+ "deleteNo": "Behalten",
241
+ "deleted": "„{deck}“ gelöscht. Drück u, um ihn zurückzuholen, oder find ihn {days} Tage lang in /trash.",
242
+ "restored": "„{deck}“ ist zurück, mit seinem Fortschritt.",
243
+ "allLabel": "Alle Stapel",
244
+ "mixLabel": {
245
+ "one": "{count} Stapel",
246
+ "other": "{count} Stapel"
247
+ },
248
+ "allRow": "Alle Stapel",
249
+ "togetherNow": {
250
+ "one": "Du übst {count} Stapel zusammen.",
251
+ "other": "Du übst {count} Stapel zusammen: ihre Karten kommen gemischt."
252
+ },
253
+ "aloneNow": "Jetzt nur noch „{deck}“.",
254
+ "mergeRow": "Mit anderem Stapel zusammenführen",
255
+ "mergeTitle": "„{deck}“ zusammenführen mit …",
256
+ "mergeQuestion": "{cards} aus „{from}“ nach „{into}“ verschieben?",
257
+ "mergeNote": "Ihr Fortschritt kommt mit. „{from}“ kommt {days} Tage in den Papierkorb, mit allen Karten, die „{into}“ schon hat.",
258
+ "mergeYes": "Zusammenführen",
259
+ "merged": {
260
+ "one": "1 Karte aus „{from}“ nach „{into}“ verschoben.",
261
+ "other": "{count} Karten aus „{from}“ nach „{into}“ verschoben."
262
+ },
263
+ "mergedLeft": {
264
+ "one": "1 war schon da: sie liegt mit dem Stapel im Papierkorb.",
265
+ "other": "{count} waren schon da: sie liegen mit dem Stapel im Papierkorb."
266
+ },
267
+ "onlyOne": "„{deck}“ ist der einzige geübte Stapel. Markier mit der Leertaste einen weiteren, um ihn dazuzunehmen.",
268
+ "mergeNo": "Nicht zusammenführen",
269
+ "mergeLanguages": "Achtung: „{from}“ ist {fromPair}, „{into}“ ist {intoPair}."
205
270
  },
206
271
  "add": {
207
272
  "fields": {
@@ -278,7 +343,8 @@
278
343
  "languagesNow": "Sieht nach {pair} aus. Falls nicht, in /decks → korrigieren.",
279
344
  "languagesSoon": "Sprachen: erkenne ich nach ein paar Karten",
280
345
  "learningLine": "Lernsprache: {language}",
281
- "learningGuess": "nur geraten: → ändern"
346
+ "learningGuess": "nur geraten: → ändern",
347
+ "lineHintFor": "Vorderseite = Rückseite, z. B. {example} · oder füg eine ganze Liste ein"
282
348
  },
283
349
  "quiz": {
284
350
  "youWrote": "deine Antwort: ",
@@ -347,7 +413,8 @@
347
413
  "one": "in etwa einem Monat",
348
414
  "other": "in etwa {count} Monaten"
349
415
  }
350
- }
416
+ },
417
+ "previewNoImport": "Die Vorschau kann keine Karten importieren; starte dafür dracosh."
351
418
  },
352
419
  "dragon": {
353
420
  "stages": {
@@ -645,7 +712,7 @@
645
712
  "hatched": "Dein Drache ist geschlüpft!",
646
713
  "line": "Beantworte Karten, damit er glücklich bleibt. Er wächst mit deiner Serie.",
647
714
  "keysSkip": "beliebige Taste zum Überspringen",
648
- "keysStart": "beliebige Taste zum Starten"
715
+ "keysStart": "beliebige Taste zum Weitermachen"
649
716
  },
650
717
  "evolution": {
651
718
  "evolved": "Dein Begleiter hat sich entwickelt: {name}!",
@@ -716,7 +783,8 @@
716
783
  "progressEntry": "eine Karte ohne Wiederholungstermin",
717
784
  "streak": "Serie und Abzeichen sind nicht lesbar"
718
785
  },
719
- "slashSwitch": "„{text}“ müsste getippt werden, und im Quiz öffnet / die Befehle. Ändere zuerst diese Karte."
786
+ "slashSwitch": "„{text}“ müsste getippt werden, und im Quiz öffnet / die Befehle. Ändere zuerst diese Karte.",
787
+ "notInTrash": "Dieser Stapel ist nicht mehr im Papierkorb."
720
788
  },
721
789
  "cli": {
722
790
  "help": "Dracosh: ein Vokabel- und Quiztrainer für dein Terminal\n\nAufruf: dracosh [Optionen]\n dracosh import <Datei|-> Karten aus einer Datei hinzufügen (.txt, .csv, .tsv, ein Anki-Paket .apkg oder .colpkg, Textexporte aus Anki oder Quizlet, eine .json-Sicherung), oder „-“ für die Standardeingabe\n dracosh export <Datei> deine Stapel als .apkg (Anki), .txt, .tsv, .csv oder .json (alles) speichern\n dracosh restore [Nummer] deine Sicherungen auflisten oder eine zurückholen\n\n --deck <Name> diesen Stapel abfragen, nur dieses Mal (sonst den in /decks gewählten)\n bei import und export: der Stapel zum Füllen oder Speichern\n --every <Zeit> Abstand zwischen Fragen: 30s, 10m, 1h (Standard: {interval})\n --no-sound Töne ausschalten\n --volume <0-1> Lautstärke (Standard: {volume})\n --stats Fortschritt ausgeben und beenden\n --data zeigen, wo Karten, Fortschritt und Sicherungen liegen\n --preview alle Animationen und Bildschirme mit erfundenen Daten ansehen (nichts wird gespeichert)\n --update import: vorhandene Karten übernehmen die Antworten aus der Datei (sonst wird gefragt)\n --split import: eine Antwort mit mehreren („cat, kitty“) wird zu einzelnen Antworten\n --separator <s> import: was die Spalten trennt: tab, comma, semicolon, pipe, colon, space oder ein Zeichen\n --encoding <e> import: eine Datei, die nicht UTF-8 ist, z. B. windows-1252\n --anki Import oder Export: direkt aus einem laufenden Anki oder hinein (Erweiterung AnkiConnect)\n -y, --yes Import, Export oder Wiederherstellen ohne Nachfrage\n -h, --help diese Hilfe zeigen\n\nOptionen ändern deine gespeicherten Einstellungen nur für diesen Start. Die gespeicherten änderst du in /settings.\n\nWährenddessen: Enter schickt ab (leer zeigt es die Antwort, dann 1 oder 2), „/“ öffnet das Befehlsmenü (/add, /decks, /settings, /stats, /help…),\nEsc beendet (löscht vorher die Eingabe). Strg+C geht auch.\nZwischen Karten: Enter fragt sofort die nächste, q beendet. /help erklärt den Rest.",
@@ -934,6 +1002,10 @@
934
1002
  "label": "Schlüpfen",
935
1003
  "hint": "das Intro beim ersten Start"
936
1004
  },
1005
+ "welcome": {
1006
+ "label": "Willkommen",
1007
+ "hint": "Sprachen und der Einstieg"
1008
+ },
937
1009
  "mascot": {
938
1010
  "label": "Maskottchen-Labor",
939
1011
  "hint": "Formen, Gesichter, Elemente, Bewegungen, Leuchten"
@@ -1327,5 +1399,121 @@
1327
1399
  "badUrl": "DRACOSH_ANKI_URL ist keine Adresse, die Dracosh nutzen kann ({detail}): Sie sieht aus wie http://127.0.0.1:8765.",
1328
1400
  "noDeck": "Anki hat keinen Stapel „{detail}“ mehr.",
1329
1401
  "notImported": "Anki hat die Karten nicht angenommen: Nichts wurde gesendet."
1402
+ },
1403
+ "welcome": {
1404
+ "languageTitle": "In welcher Sprache soll Dracosh sprechen?",
1405
+ "languageNote": "Ein paar kurze Fragen, dann geht's los. Die Sprache kannst du später in /settings ändern.",
1406
+ "homeTitle": "Welche Sprache sprichst du?",
1407
+ "homeNote": "So kann Dracosh neue Wörter von ihren Übersetzungen unterscheiden.",
1408
+ "learningTitle": "Welche Sprache lernst du?",
1409
+ "learningNote": "Wähl für den Anfang eine; Stapel in anderen Sprachen kannst du jederzeit hinzufügen. Du lernst keine Sprache? Wähl „Etwas anderes“ am Ende der Liste.",
1410
+ "notLanguage": "Etwas anderes (Definitionen, Fakten …)",
1411
+ "startTitle": "Wie möchtest du anfangen?",
1412
+ "startNote": "Du kannst das später ändern: /decks wechselt jederzeit den Stapel.",
1413
+ "start": {
1414
+ "words": {
1415
+ "one": "Mit {count} Alltagswort anfangen",
1416
+ "other": "Mit {count} Alltagswörtern anfangen"
1417
+ },
1418
+ "wordsNote": "{language} → {home}",
1419
+ "tour": "Zeig mir, wie es geht",
1420
+ "tourNote": {
1421
+ "one": "{count} kurze Karte dazu, wie Dracosh funktioniert",
1422
+ "other": "{count} kurze Karten dazu, wie Dracosh funktioniert"
1423
+ },
1424
+ "import": "Ich habe schon Karten",
1425
+ "importNote": "aus Anki, einer CSV- oder Textdatei",
1426
+ "own": "Eigenen Stapel anlegen",
1427
+ "ownNote": "Karten eintippen oder einfügen",
1428
+ "noWords": "Fertige Wörter gibt es für {languages}. Für {language} legst du einen eigenen Stapel an.",
1429
+ "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
+ },
1431
+ "firstWordsDeck": "{language}: erste Wörter",
1432
+ "suggested": "Vorschlag"
1433
+ },
1434
+ "importScreen": {
1435
+ "title": "Karten importieren",
1436
+ "pathLabel": "Welche Datei?",
1437
+ "pathHint": "Ein Anki-Paket (.apkg), eine CSV- oder Textdatei. Zieh die Datei hierher, um ihren Pfad einzufügen.",
1438
+ "needPath": "Gib den Pfad der Datei ein oder zieh sie hierher.",
1439
+ "reading": "Datei wird gelesen…",
1440
+ "deckLabel": "In welchen Stapel sollen diese Karten?",
1441
+ "splitYes": "Ja, jede ist eine richtige Antwort",
1442
+ "splitNo": "Nein, so lassen, wie sie sind",
1443
+ "add": {
1444
+ "one": "1 Karte hinzufügen",
1445
+ "other": "{count} Karten hinzufügen"
1446
+ },
1447
+ "addUpdate": {
1448
+ "one": "{cards} hinzufügen und 1 aktualisieren",
1449
+ "other": "{cards} hinzufügen und {count} aktualisieren"
1450
+ },
1451
+ "update": {
1452
+ "one": "1 Karte aktualisieren",
1453
+ "other": "{count} Karten aktualisieren"
1454
+ },
1455
+ "cancel": "Abbrechen, nichts ändern",
1456
+ "changedNote": "Eine aktualisierte Karte übernimmt die Antworten aus der Datei und behält ihren Fortschritt.",
1457
+ "saving": "Wird gespeichert…",
1458
+ "practise": "Als Nächstes: {deck}.",
1459
+ "backup": "Das ist eine vollständige Dracosh-Sicherung. Schließ Dracosh und hol sie zurück mit: dracosh import {file}",
1460
+ "notUtf8": "{file} ist nicht als UTF-8 gespeichert. Speichere die Datei als UTF-8 (in Excel: CSV UTF-8) oder importiere sie mit dracosh import, der Befehl liest auch andere Kodierungen (--encoding).",
1461
+ "newDeck": "Neuer Stapel: {deck}",
1462
+ "otherName": "Anderer Name …",
1463
+ "fromFile": "Aus der Datei:",
1464
+ "slashLeft": {
1465
+ "one": "1 Karte wurde ausgelassen: eine Antwort zum Eintippen beginnt mit /.",
1466
+ "other": "{count} Karten wurden ausgelassen: eine Antwort zum Eintippen beginnt mit /."
1467
+ },
1468
+ "undo": "Rückgängig machen: Dracosh beenden, dann dracosh restore 1 ausführen (die eben angelegte Sicherung).",
1469
+ "close": "Schließen",
1470
+ "problemLine": "Zeile {line}: {text} ({issue})",
1471
+ "problemNote": "{text} ({issue})",
1472
+ "empty": "Diese Datei enthält keine Karten."
1473
+ },
1474
+ "trash": {
1475
+ "title": "Papierkorb",
1476
+ "note": "Gelöschte Stapel und Karten bleiben hier {days} Tage, mit ihrem Fortschritt.",
1477
+ "row": "{cards} · gelöscht am {deleted} · bis {until}",
1478
+ "empty": "Der Papierkorb ist leer.",
1479
+ "restored": "„{deck}“ ist zurück, mit seinem Fortschritt.",
1480
+ "cardsRow": "aus „{deck}“ · gelöscht am {deleted} · bis {until}",
1481
+ "cardsRestored": {
1482
+ "one": "1 Karte ist zurück in „{deck}“.",
1483
+ "other": "{count} Karten sind zurück in „{deck}“."
1484
+ },
1485
+ "skipped": {
1486
+ "one": "1 bleibt im Papierkorb: Der Stapel hat schon eine Karte mit derselben Vorderseite.",
1487
+ "other": "{count} bleiben im Papierkorb: Der Stapel hat schon Karten mit denselben Vorderseiten."
1488
+ }
1489
+ },
1490
+ "cards": {
1491
+ "title": {
1492
+ "one": "{deck} · {count} Karte",
1493
+ "other": "{deck} · {count} Karten"
1494
+ },
1495
+ "addRow": "+ Karten hinzufügen",
1496
+ "undoRow": "↶ „{card}“ zurückholen",
1497
+ "editRow": "Korrigieren",
1498
+ "moveRow": "In einen anderen Stapel verschieben",
1499
+ "deleteRow": "Löschen",
1500
+ "editTitle": "Karte korrigieren · {deck}",
1501
+ "moveTitle": "„{card}“ verschieben nach …",
1502
+ "deleteQuestion": "Die Karte „{card}“ löschen?",
1503
+ "deleteNote": "Sie kommt mit ihrem Fortschritt in den Papierkorb: /trash holt sie {days} Tage lang zurück.",
1504
+ "deleted": "Karte „{card}“ gelöscht. Sie bleibt {days} Tage im Papierkorb.",
1505
+ "restored": "Die Karte „{card}“ ist zurück.",
1506
+ "moved": "Karte „{card}“ nach „{deck}“ verschoben.",
1507
+ "alreadyThere": "„{deck}“ hat schon eine Karte mit dieser Vorderseite.",
1508
+ "noOtherDeck": "Du hast keinen anderen Stapel, in den du sie verschieben kannst.",
1509
+ "noMatch": "Keine Karte passt zu „{query}“.",
1510
+ "found": {
1511
+ "one": "1 Karte gefunden",
1512
+ "other": "{count} Karten gefunden"
1513
+ },
1514
+ "tourNot": "Die Karten der Tour lassen sich nicht ändern. /add legt einen eigenen Stapel an.",
1515
+ "editHint": "Vorderseite = Rückseite; andere Antwort // Beispiel",
1516
+ "whichDeck": "Karten welches Stapels?",
1517
+ "deleteNo": "Behalten"
1330
1518
  }
1331
1519
  }
package/locales/en.json CHANGED
@@ -2,7 +2,10 @@
2
2
  "commands": {
3
3
  "hint": "Reveal another letter (the card comes back sooner)",
4
4
  "add": "Add cards to a deck, or start a new one",
5
+ "import": "Import cards from Anki, a CSV or a text file",
6
+ "cards": "Browse, search, fix, move or delete the deck's cards",
5
7
  "decks": "Switch to another deck, or start a new one",
8
+ "trash": "Deleted decks and cards: bring them back",
6
9
  "settings": "Language, rhythm, interval, quiet hours, sound, goal, tips",
7
10
  "stats": "Streak, month calendar and badges summary",
8
11
  "badges": "All badges and what unlocks them",
@@ -76,15 +79,29 @@
76
79
  "addName": "enter create · esc cancel",
77
80
  "confirm": "{yes} yes · {no} no",
78
81
  "languagePick": "type to search · ↑/↓ choose · enter confirm · ← back",
79
- "choiceLeft": "{choose} · ← back"
82
+ "choiceLeft": "{choose} · ← back",
83
+ "importPath": "enter read the file · esc cancel",
84
+ "importDone": "enter continue",
85
+ "importName": "enter continue · esc back",
86
+ "rename": "enter save · esc cancel",
87
+ "undo": "u undo",
88
+ "trash": "↑/↓ choose · enter bring back · esc back",
89
+ "decksTogether": "space practise together · → settings · {choose}",
90
+ "cards": "type to search · ↑/↓ choose · enter open · esc back",
91
+ "tabPart": "tab next part",
92
+ "decksMixing": "space add/remove · enter only this deck · → settings · esc done"
80
93
  },
81
94
  "settings": {
82
95
  "title": "Settings",
83
96
  "rows": {
84
97
  "language": {
85
- "label": "Language",
98
+ "label": "App language",
86
99
  "hint": "the language Dracosh speaks; the tour switches too"
87
100
  },
101
+ "homeLanguage": {
102
+ "label": "Your language",
103
+ "hint": "the language you speak: it tells which side of a card is new to you"
104
+ },
88
105
  "rhythm": {
89
106
  "label": "Rhythm",
90
107
  "hint": "a card every few minutes (the interval), or a session: one card after another, Enter for the next"
@@ -121,6 +138,10 @@
121
138
  "label": "Quiet hours",
122
139
  "hint": "no questions, sounds or banners during these hours"
123
140
  },
141
+ "dragonLook": {
142
+ "label": "Dragon's look",
143
+ "hint": "its element, from the die; Enter goes back to the default green dragon"
144
+ },
124
145
  "reset": {
125
146
  "label": "Reset",
126
147
  "hint": "start over: your progress only, or everything (a backup is made first)"
@@ -142,7 +163,14 @@
142
163
  "session": "session",
143
164
  "session-10": "session · 10 cards",
144
165
  "session-20": "session · 20 cards"
145
- }
166
+ },
167
+ "notSet": "not set",
168
+ "homeTitle": "Which language do you speak?",
169
+ "lookQuestion": "Go back to the default green dragon?",
170
+ "lookNote": "Its element ({element}) goes for good: the die never rolls again.",
171
+ "lookYes": "Default look",
172
+ "lookNo": "Keep the element",
173
+ "lookDropped": "Your dragon has its default look again."
146
174
  },
147
175
  "count": {
148
176
  "cards": {
@@ -198,7 +226,44 @@
198
226
  "languagesRow": "Languages",
199
227
  "detectRow": "Detect from the cards",
200
228
  "learningRow": "Learning",
201
- "learningShort": "learning {language}"
229
+ "learningShort": "learning {language}",
230
+ "renameRow": "Rename",
231
+ "deleteRow": "Delete",
232
+ "renameTitle": "New name for \"{deck}\"",
233
+ "renamed": "\"{from}\" is now \"{to}\".",
234
+ "deleteQuestion": "Delete the deck \"{deck}\" and its {cards}?",
235
+ "deleteNote": "It goes to the trash with its progress: /trash brings it back for {days} days.",
236
+ "deleteYes": "Delete",
237
+ "deleteNo": "Keep it",
238
+ "deleted": "Deleted \"{deck}\". Press u to bring it back, or find it in /trash for {days} days.",
239
+ "restored": "\"{deck}\" is back, with its progress.",
240
+ "allLabel": "All decks",
241
+ "mixLabel": {
242
+ "one": "{count} deck",
243
+ "other": "{count} decks"
244
+ },
245
+ "allRow": "All decks",
246
+ "togetherNow": {
247
+ "one": "Practising {count} deck together.",
248
+ "other": "Practising {count} decks together: their cards come mixed."
249
+ },
250
+ "aloneNow": "Practising only \"{deck}\" now.",
251
+ "mergeRow": "Merge into another deck",
252
+ "mergeTitle": "Merge \"{deck}\" into…",
253
+ "mergeQuestion": "Move {cards} from \"{from}\" into \"{into}\"?",
254
+ "mergeNote": "Their progress comes along. \"{from}\" goes to the trash for {days} days, along with any cards \"{into}\" already has.",
255
+ "mergeYes": "Merge",
256
+ "merged": {
257
+ "one": "Moved 1 card from \"{from}\" into \"{into}\".",
258
+ "other": "Moved {count} cards from \"{from}\" into \"{into}\"."
259
+ },
260
+ "mergedLeft": {
261
+ "one": "1 was there already: it's in the trash with the deck.",
262
+ "other": "{count} were there already: they're in the trash with the deck."
263
+ },
264
+ "onlyOne": "\"{deck}\" is the only deck practised. Mark another one with space to add it.",
265
+ "mergeNo": "Don't merge",
266
+ "mergeLanguages": "Careful: \"{from}\" is {fromPair}, \"{into}\" is {intoPair}."
202
267
  },
203
268
  "add": {
204
269
  "fields": {
@@ -275,7 +340,8 @@
275
340
  "languagesNow": "Looks like {pair}. If not, fix it in /decks →.",
276
341
  "languagesSoon": "Languages: I'll tell after a few cards",
277
342
  "learningLine": "Learning: {language}",
278
- "learningGuess": "that is a guess: → to change it"
343
+ "learningGuess": "that is a guess: → to change it",
344
+ "lineHintFor": "front = back, like {example} · or paste a whole list"
279
345
  },
280
346
  "quiz": {
281
347
  "youWrote": "you wrote ",
@@ -344,7 +410,8 @@
344
410
  "one": "in about a month",
345
411
  "other": "in about {count} months"
346
412
  }
347
- }
413
+ },
414
+ "previewNoImport": "The preview can't import cards; run dracosh for that."
348
415
  },
349
416
  "dragon": {
350
417
  "stages": {
@@ -633,7 +700,7 @@
633
700
  "hatched": "Your dragon has hatched!",
634
701
  "line": "Answer cards to keep it happy. It grows with your streak.",
635
702
  "keysSkip": "any key to skip",
636
- "keysStart": "any key to start"
703
+ "keysStart": "any key to continue"
637
704
  },
638
705
  "evolution": {
639
706
  "evolved": "Your companion evolved: {name}!",
@@ -704,7 +771,8 @@
704
771
  "progressEntry": "a card without its review date",
705
772
  "streak": "the streak and badges are unreadable"
706
773
  },
707
- "slashSwitch": "\"{text}\" would have to be typed, and in the quiz / opens the commands. Change that card first."
774
+ "slashSwitch": "\"{text}\" would have to be typed, and in the quiz / opens the commands. Change that card first.",
775
+ "notInTrash": "That deck isn't in the trash any more."
708
776
  },
709
777
  "cli": {
710
778
  "help": "Dracosh: a vocabulary and quiz trainer for your terminal\n\nUsage: dracosh [options]\n dracosh import <file|-> add cards from a file (.txt, .csv, .tsv, an Anki .apkg or .colpkg, Anki or Quizlet text exports, a .json backup), or \"-\" for standard input\n dracosh export <file> write your decks to .apkg (Anki), .txt, .tsv, .csv or .json (everything)\n dracosh restore [number] list your backups, or bring one back\n\n --deck <name> quiz this deck, this run only (otherwise the one picked in /decks);\n with import or export: the deck to fill or write\n --every <time> pause between questions: 30s, 10m, 1h (default: {interval})\n --no-sound turn sound effects off\n --volume <0-1> sound volume (default: {volume})\n --stats print progress and exit\n --data show where your cards, progress and backups are kept\n --preview browse every animation and screen on made-up data (nothing is saved)\n --update import: cards already there take the file's answers (otherwise you're asked)\n --split import: an answer listing several (\"cat, kitty\") becomes one answer each\n --separator <s> import: what splits the columns: tab, comma, semicolon, pipe, colon, space or a character\n --encoding <e> import: a file that isn't UTF-8, e.g. windows-1250\n --anki import or export: straight from or to a running Anki (AnkiConnect add-on)\n -y, --yes import, export or restore without asking first\n -h, --help show this help\n\nFlags override your saved settings for this run only. Change the saved ones with /settings.\n\nWhile running: Enter submits (with nothing typed it shows the answer, then 1 or 2), \"/\" opens the command menu (/add, /decks, /settings, /stats, /help…),\nEsc quits (clears the line first if you typed something). Ctrl+C also works.\nBetween cards: Enter asks the next one right away, q quits. /help explains the rest.",
@@ -916,6 +984,10 @@
916
984
  "label": "Hatching",
917
985
  "hint": "the first-launch intro"
918
986
  },
987
+ "welcome": {
988
+ "label": "Welcome",
989
+ "hint": "languages and a way to start"
990
+ },
919
991
  "mascot": {
920
992
  "label": "Mascot lab",
921
993
  "hint": "forms, faces, elements, moves, glow"
@@ -1310,5 +1382,121 @@
1310
1382
  "badUrl": "DRACOSH_ANKI_URL isn't an address Dracosh can use ({detail}): it looks like http://127.0.0.1:8765.",
1311
1383
  "noDeck": "Anki has no deck \"{detail}\" any more.",
1312
1384
  "notImported": "Anki didn't take the cards: nothing was sent."
1385
+ },
1386
+ "welcome": {
1387
+ "languageTitle": "Which language should Dracosh speak?",
1388
+ "languageNote": "A few quick questions, then you start. You can change the language later in /settings.",
1389
+ "homeTitle": "Which language do you speak?",
1390
+ "homeNote": "So Dracosh can tell new words from their translations.",
1391
+ "learningTitle": "Which language are you learning?",
1392
+ "learningNote": "Pick one to start with; you can add decks in other languages any time. Not learning a language? Pick “Something else” at the end.",
1393
+ "notLanguage": "Something else (definitions, facts…)",
1394
+ "startTitle": "How do you want to start?",
1395
+ "startNote": "You can change this later: /decks switches decks any time.",
1396
+ "start": {
1397
+ "words": {
1398
+ "one": "Start with {count} everyday word",
1399
+ "other": "Start with {count} everyday words"
1400
+ },
1401
+ "wordsNote": "{language} → {home}",
1402
+ "tour": "Show me how it works",
1403
+ "tourNote": {
1404
+ "one": "{count} short card on how Dracosh works",
1405
+ "other": "{count} short cards on how Dracosh works"
1406
+ },
1407
+ "import": "I already have cards",
1408
+ "importNote": "from Anki, a CSV or a text file",
1409
+ "own": "Make my own deck",
1410
+ "ownNote": "type or paste your cards",
1411
+ "noWords": "Ready-made words come in {languages}. For {language}, make a deck of your own.",
1412
+ "noWordsHome": "Ready-made words are for pairs of these: {languages}. {language} isn't one yet, so start with a deck of your own."
1413
+ },
1414
+ "firstWordsDeck": "{language}: first words",
1415
+ "suggested": "suggested"
1416
+ },
1417
+ "importScreen": {
1418
+ "title": "Import cards",
1419
+ "pathLabel": "Which file?",
1420
+ "pathHint": "An Anki package (.apkg), a CSV or a text file. Drag the file here to paste its path.",
1421
+ "needPath": "Type the file's path, or drag the file here.",
1422
+ "reading": "Reading the file…",
1423
+ "deckLabel": "Which deck should these cards go into?",
1424
+ "splitYes": "Yes, each one is a right answer",
1425
+ "splitNo": "No, keep them as written",
1426
+ "add": {
1427
+ "one": "Add 1 card",
1428
+ "other": "Add {count} cards"
1429
+ },
1430
+ "addUpdate": {
1431
+ "one": "Add {cards} and update 1",
1432
+ "other": "Add {cards} and update {count}"
1433
+ },
1434
+ "update": {
1435
+ "one": "Update 1 card",
1436
+ "other": "Update {count} cards"
1437
+ },
1438
+ "cancel": "Cancel, change nothing",
1439
+ "changedNote": "An updated card takes the file's answers and keeps its progress.",
1440
+ "saving": "Saving…",
1441
+ "practise": "Up next: {deck}.",
1442
+ "backup": "That's a full Dracosh backup. Close Dracosh and bring it back with: dracosh import {file}",
1443
+ "notUtf8": "{file} isn't saved as UTF-8. Save it as UTF-8 (in Excel: CSV UTF-8), or import it with dracosh import, which can read other encodings (--encoding).",
1444
+ "newDeck": "A new deck: {deck}",
1445
+ "otherName": "Another name…",
1446
+ "fromFile": "From the file:",
1447
+ "slashLeft": {
1448
+ "one": "1 card was left out: an answer to type starts with /.",
1449
+ "other": "{count} cards were left out: an answer to type starts with /."
1450
+ },
1451
+ "undo": "To undo it: quit Dracosh, then run dracosh restore 1 (the backup taken just now).",
1452
+ "close": "Close",
1453
+ "problemLine": "line {line}: {text} ({issue})",
1454
+ "problemNote": "{text} ({issue})",
1455
+ "empty": "This file has no cards."
1456
+ },
1457
+ "trash": {
1458
+ "title": "Trash",
1459
+ "note": "Deleted decks and cards stay here for {days} days, with their progress.",
1460
+ "row": "{cards} · deleted {deleted} · kept until {until}",
1461
+ "empty": "The trash is empty.",
1462
+ "restored": "\"{deck}\" is back, with its progress.",
1463
+ "cardsRow": "from \"{deck}\" · deleted {deleted} · kept until {until}",
1464
+ "cardsRestored": {
1465
+ "one": "1 card is back in \"{deck}\".",
1466
+ "other": "{count} cards are back in \"{deck}\"."
1467
+ },
1468
+ "skipped": {
1469
+ "one": "1 stays in the trash: the deck already has a card with the same front.",
1470
+ "other": "{count} stay in the trash: the deck already has cards with the same fronts."
1471
+ }
1472
+ },
1473
+ "cards": {
1474
+ "title": {
1475
+ "one": "{deck} · {count} card",
1476
+ "other": "{deck} · {count} cards"
1477
+ },
1478
+ "addRow": "+ Add cards",
1479
+ "undoRow": "↶ Bring back \"{card}\"",
1480
+ "editRow": "Fix",
1481
+ "moveRow": "Move to another deck",
1482
+ "deleteRow": "Delete",
1483
+ "editTitle": "Fix a card · {deck}",
1484
+ "moveTitle": "Move \"{card}\" to…",
1485
+ "deleteQuestion": "Delete the card \"{card}\"?",
1486
+ "deleteNote": "It goes to the trash with its progress: /trash brings it back for {days} days.",
1487
+ "deleted": "Deleted the card \"{card}\". It's in the trash for {days} days.",
1488
+ "restored": "The card \"{card}\" is back.",
1489
+ "moved": "Moved the card \"{card}\" to \"{deck}\".",
1490
+ "alreadyThere": "\"{deck}\" has a card with this front already.",
1491
+ "noOtherDeck": "You have no other deck to move it to.",
1492
+ "noMatch": "No card matches \"{query}\".",
1493
+ "found": {
1494
+ "one": "1 card found",
1495
+ "other": "{count} cards found"
1496
+ },
1497
+ "tourNot": "The tour's cards can't be changed. /add starts a deck of your own.",
1498
+ "editHint": "front = back; other answer // example",
1499
+ "whichDeck": "Which deck's cards?",
1500
+ "deleteNo": "Keep it"
1313
1501
  }
1314
1502
  }