dracosh 0.2.0 → 0.3.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.
Files changed (55) hide show
  1. package/README.md +16 -11
  2. package/locales/de.json +1046 -0
  3. package/locales/en.json +1029 -0
  4. package/locales/fr.json +1094 -0
  5. package/locales/pl.json +1117 -0
  6. package/locales/uk.json +1118 -0
  7. package/package.json +2 -2
  8. package/src/alerts.js +3 -1
  9. package/src/backup.js +2 -1
  10. package/src/cardline.js +71 -0
  11. package/src/cli.js +39 -52
  12. package/src/commands.js +14 -12
  13. package/src/demo.js +11 -0
  14. package/src/diff.js +13 -7
  15. package/src/i18n.js +68 -0
  16. package/src/judge.js +24 -6
  17. package/src/library.js +62 -35
  18. package/src/lock.js +2 -1
  19. package/src/manage.js +150 -60
  20. package/src/pause.js +1 -2
  21. package/src/progress.js +76 -59
  22. package/src/quiet.js +3 -2
  23. package/src/scheduler.js +3 -6
  24. package/src/session.js +69 -19
  25. package/src/settings.js +13 -6
  26. package/src/starter.js +36 -27
  27. package/src/store.js +9 -7
  28. package/src/tips.js +12 -3
  29. package/src/ui/AddCard.js +405 -81
  30. package/src/ui/AnswerInput.js +22 -10
  31. package/src/ui/App.js +181 -50
  32. package/src/ui/BadgeUnlock.js +4 -3
  33. package/src/ui/Badges.js +9 -8
  34. package/src/ui/Choice.js +14 -9
  35. package/src/ui/Companion.js +13 -13
  36. package/src/ui/Confetti.js +2 -2
  37. package/src/ui/Decks.js +58 -8
  38. package/src/ui/DieRoll.js +9 -9
  39. package/src/ui/Evolution.js +7 -7
  40. package/src/ui/Hatch.js +7 -6
  41. package/src/ui/Header.js +58 -16
  42. package/src/ui/Help.js +31 -25
  43. package/src/ui/Mascot.js +1 -2
  44. package/src/ui/Missed.js +13 -12
  45. package/src/ui/Preview.js +48 -29
  46. package/src/ui/Reset.js +13 -14
  47. package/src/ui/Settings.js +26 -19
  48. package/src/ui/Stats.js +24 -23
  49. package/src/ui/Summary.js +10 -9
  50. package/src/ui/TheOne.js +7 -6
  51. package/src/ui/icons.js +1 -2
  52. package/src/ui/kit.js +34 -6
  53. package/src/vacation.js +2 -1
  54. package/src/words.js +2 -1
  55. package/data/tips.json +0 -32
@@ -0,0 +1,1029 @@
1
+ {
2
+ "commands": {
3
+ "hint": "Reveal another letter (the card won't climb a box)",
4
+ "add": "Add cards to a deck, or start a new one",
5
+ "decks": "Switch to another deck, or start a new one",
6
+ "settings": "Language, rhythm, interval, quiet hours, sound, goal, tips",
7
+ "stats": "Streak, month calendar and badges summary",
8
+ "badges": "All badges and what unlocks them",
9
+ "companion": "Your dragon, its element and the forms ahead",
10
+ "missed": "Cards you got wrong today",
11
+ "pause": "A break (30m, 2h) or days off (3d, 24.12 2.01)",
12
+ "help": "Keys, how cards come back, the streak",
13
+ "quit": "Exit Dracosh",
14
+ "correct": "Count my last answer as correct"
15
+ },
16
+ "time": {
17
+ "seconds": "{n} s",
18
+ "minutes": "{n} min",
19
+ "hours": "{n} h"
20
+ },
21
+ "help": {
22
+ "title": "Help",
23
+ "keysTitle": "Keys",
24
+ "howTitle": "How it works",
25
+ "outsideTitle": "Outside the quiz",
26
+ "keys": {
27
+ "enter": "Enter",
28
+ "enterWhat": "check your answer; with nothing typed, show it and grade yourself; between cards, ask the next one",
29
+ "slashWhat": "open the commands",
30
+ "esc": "Esc",
31
+ "escWhat": "clear what you typed; twice on an empty line: quit",
32
+ "qWhat": "quit, between cards",
33
+ "anyKey": "any key",
34
+ "anyKeyWhat": "wakes a sleeping dragon",
35
+ "grade": "1 / 2",
36
+ "gradeWhat": "after the answer is shown: didn't know (or Esc) / knew it"
37
+ },
38
+ "how": {
39
+ "boxes": "A right answer moves a card to a later box: it comes back in {first}, then {last} days. A miss sends it back to the first box.",
40
+ "typos": "One wrong letter in a longer word still counts, and you see the right spelling.",
41
+ "streak": "Reach your daily goal to keep your streak going; a day where you did every card there was counts too. Your dragon grows with your best streak.",
42
+ "freezes": "A freeze covers a day you missed. You start with {max} and get one back each week, {max} at most.",
43
+ "cards": "In /add a line is a card: kot = cat; kitty // example. Braces make a gap to fill in: I {{look forward}} to it."
44
+ },
45
+ "outside": {
46
+ "deckExample": "Polish",
47
+ "deck": "quiz another deck",
48
+ "data": "where your cards and backups are",
49
+ "restore": "bring back a backup",
50
+ "help": "every option"
51
+ }
52
+ },
53
+ "keyHints": {
54
+ "back": "esc back",
55
+ "settings": "↑/↓ select · ←/→ change · esc back",
56
+ "choiceBack": "{choose} · esc back",
57
+ "choiceCancel": "{choose} · esc cancel",
58
+ "resetting": "resetting…",
59
+ "asking": "enter submit (empty: reveal) · / commands · esc quit",
60
+ "empty": "/add · / commands · q quit",
61
+ "waiting": "enter ask now · / commands · q quit",
62
+ "correctFirst": "/correct if you were right · {rest}",
63
+ "stats": "←/→ month · esc back",
64
+ "badges": "↑/↓ browse · ←/→ column · esc back",
65
+ "keyNames": "any key|enter|esc|tab",
66
+ "addFirst": "enter add · esc cancel",
67
+ "addMore": "enter add · ↑ fix the last one · esc done",
68
+ "addFixing": "enter save · esc leave it",
69
+ "addBack": "enter add · esc back",
70
+ "pasteReview": "↑/↓ move · e fix · x drop · enter add {count} · esc cancel",
71
+ "pasteFix": "enter done · esc back",
72
+ "grading": "1 or ← didn't know · 2 or → knew it",
73
+ "sessionWaiting": "enter next card · / commands · q quit",
74
+ "decks": "→ direction · {choose}",
75
+ "directionPick": "{choose} · esc or typing on keeps 1",
76
+ "addName": "enter create · esc cancel",
77
+ "confirm": "{yes} yes · {no} no"
78
+ },
79
+ "settings": {
80
+ "title": "Settings",
81
+ "rows": {
82
+ "language": {
83
+ "label": "Language",
84
+ "hint": "the language Dracosh speaks; the tour switches too"
85
+ },
86
+ "rhythm": {
87
+ "label": "Rhythm",
88
+ "hint": "a card every few minutes (the interval), or a session: one card after another, Enter for the next"
89
+ },
90
+ "everyMs": {
91
+ "label": "Interval",
92
+ "hint": "time between questions"
93
+ },
94
+ "sound": {
95
+ "label": "Sound",
96
+ "hint": "answer and new-card sounds"
97
+ },
98
+ "volume": {
99
+ "label": "Volume",
100
+ "hint": "plays a preview when changed"
101
+ },
102
+ "dailyGoal": {
103
+ "label": "Daily goal",
104
+ "hint": "keeps your streak alive"
105
+ },
106
+ "tips": {
107
+ "label": "Tips",
108
+ "hint": "a short tip about Dracosh while you wait"
109
+ },
110
+ "skipWeekends": {
111
+ "label": "Weekends",
112
+ "hint": "rest days never break your streak (doing them still counts)"
113
+ },
114
+ "quiet": {
115
+ "label": "Quiet hours",
116
+ "hint": "no questions, sounds or banners during these hours"
117
+ },
118
+ "reset": {
119
+ "label": "Reset",
120
+ "hint": "start over: your progress only, or everything (a backup is made first)"
121
+ }
122
+ },
123
+ "on": "on",
124
+ "off": "off",
125
+ "goal": "{n} correct",
126
+ "tipModes": {
127
+ "always": "always",
128
+ "sometimes": "sometimes (1 in 3 waits)",
129
+ "off": "off"
130
+ },
131
+ "weekendsRest": "rest days",
132
+ "weekendsCount": "count like other days",
133
+ "pressEnter": "press enter",
134
+ "rhythms": {
135
+ "minutes": "every few minutes",
136
+ "session": "session",
137
+ "session-10": "session · 10 cards",
138
+ "session-20": "session · 20 cards"
139
+ }
140
+ },
141
+ "count": {
142
+ "cards": {
143
+ "one": "{count} card",
144
+ "other": "{count} cards"
145
+ },
146
+ "decks": {
147
+ "one": "{count} deck",
148
+ "other": "{count} decks"
149
+ },
150
+ "badges": {
151
+ "one": "{count} badge",
152
+ "other": "{count} badges"
153
+ }
154
+ },
155
+ "choice": {
156
+ "keys": "↑/↓ choose · enter confirm",
157
+ "yesKey": "y",
158
+ "noKey": "n"
159
+ },
160
+ "reset": {
161
+ "pickTitle": "Reset: what should start over?",
162
+ "bestStreak": "a {count}-day best streak",
163
+ "yourDragon": "your {name}",
164
+ "progress": {
165
+ "label": "Progress",
166
+ "note": "badges, streak and the dragon start over; your cards stay",
167
+ "question": "Reset your progress?",
168
+ "stays": "Your decks, cards and how well you know them stay.",
169
+ "yes": "Yes, reset progress"
170
+ },
171
+ "everything": {
172
+ "label": "Everything",
173
+ "note": "a fresh start with the tour; settings stay",
174
+ "question": "Reset everything?",
175
+ "stays": "Dracosh starts over like a fresh install, with the tour. Settings stay.",
176
+ "yes": "Yes, reset everything"
177
+ },
178
+ "clears": "This clears {what}.",
179
+ "backupFirst": "A backup is made first, so dracosh restore can undo it.",
180
+ "no": "No, keep it all"
181
+ },
182
+ "decks": {
183
+ "title": "Decks",
184
+ "tour": "the tour",
185
+ "now": "current",
186
+ "newDeck": "+ New deck",
187
+ "directionSaved": "\"{deck}\" asks the new way from the next card.",
188
+ "front": "front",
189
+ "back": "back",
190
+ "progressKept": "Progress stays for every direction, even one you turn off."
191
+ },
192
+ "add": {
193
+ "fields": {
194
+ "deck": {
195
+ "label": "Name your deck",
196
+ "hint": "Polish, Biology, Capitals… whatever you want to learn"
197
+ },
198
+ "line": {
199
+ "label": "New card",
200
+ "hint": "front = back, like kot = cat; kitty // Mój kot śpi. · or paste a whole list"
201
+ },
202
+ "back": {
203
+ "label": "Back",
204
+ "hint": "the answer · ; separates several right answers · // adds an example"
205
+ }
206
+ },
207
+ "titlePick": "Add cards to…",
208
+ "titleNew": "New deck",
209
+ "titleFirst": "Start your first deck",
210
+ "titleCard": "Add a card · {deck}",
211
+ "deckReady": "Your deck \"{deck}\" is ready. Now its first card:",
212
+ "duplicateCard": "\"{front}\" is already in {deck}.",
213
+ "duplicateDeck": "There is already a deck called \"{deck}\".",
214
+ "nameTooLong": "Keep the name to {max} characters or fewer.",
215
+ "needName": "Your deck needs a name.",
216
+ "needFront": "A card needs a front.",
217
+ "needBack": "A card needs an answer.",
218
+ "preview": {
219
+ "pair": "{front} = {back} · you'll pick how it's asked after this card",
220
+ "asks": "{prompt} → ? you type {answer}",
221
+ "both": "{forward} · {backward}",
222
+ "cloze": {
223
+ "one": "{prompt} · 1 gap",
224
+ "other": "{prompt} · {count} gaps"
225
+ },
226
+ "noBack": "Enter, then the back · or write front = back"
227
+ },
228
+ "fixed": "\"{front}\" fixed.",
229
+ "fixing": "Fixing \"{front}\": Enter saves, Esc leaves it as it was.",
230
+ "more": {
231
+ "one": "+ 1 earlier card",
232
+ "other": "+ {count} earlier cards"
233
+ },
234
+ "directionQuestion": "How should \"{deck}\" ask?",
235
+ "youType": "you type {answer}",
236
+ "bothWays": "Both ways",
237
+ "bothWaysNote": "every card asked both ways",
238
+ "directionLater": "You can change it later: /decks, then →.",
239
+ "directionSet": "Got it: {how} · next card:",
240
+ "paste": {
241
+ "title": "Pasted cards · {deck}",
242
+ "summary": "Ready to add: {count} of {lines}",
243
+ "attention": " · to fix: {count}",
244
+ "issues": {
245
+ "noBack": "no back",
246
+ "noFront": "no front",
247
+ "inDeck": "already in the deck",
248
+ "twice": "twice in the list",
249
+ "slash": "starts with /"
250
+ },
251
+ "position": "{at}/{count}",
252
+ "confirm": "Esc again drops the pasted cards. Any other key keeps them.",
253
+ "nothing": "Nothing to add yet: fix (e) or drop (x) the flagged lines.",
254
+ "added": {
255
+ "one": "Added 1 card to {deck}.",
256
+ "other": "Added {count} cards to {deck}."
257
+ },
258
+ "skipped": {
259
+ "one": "1 line skipped: it still needed fixing.",
260
+ "other": "{count} lines skipped: they still needed fixing."
261
+ }
262
+ }
263
+ },
264
+ "quiz": {
265
+ "youWrote": "you wrote ",
266
+ "closeEnough": " (close enough)",
267
+ "hintUsed": "hint used · the card stays in its box",
268
+ "countedCorrect": "counted as correct",
269
+ "acceptedFromNow": " · \"{answer}\" is accepted from now on",
270
+ "tip": "tip · {cat}",
271
+ "loading": " loading…",
272
+ "pausedUntil": "paused until {time}",
273
+ "quietHours": " (quiet hours)",
274
+ "nothingWaiting": "nothing waiting · next card {when}",
275
+ "nextCardIn": " next card in {time}",
276
+ "when": {
277
+ "at": "at {time}",
278
+ "tomorrow": "tomorrow",
279
+ "on": "on {day}"
280
+ },
281
+ "empty": {
282
+ "tourTitle": "You've finished the tour.",
283
+ "tourNext": "Now make it yours: type /add to start your own deck.",
284
+ "noCardsTitle": "\"{deck}\" has no cards yet.",
285
+ "noCardsNext": "Type /add to add the first one.",
286
+ "deckDoneTitle": "Nothing more in \"{deck}\" today.",
287
+ "deckDoneNext": "Its cards come back {when}. Other decks still have cards: /decks",
288
+ "dayDoneTitle": "All done for today.",
289
+ "dayDoneNext": "Your cards come back {when}. Want more today? /add some new ones.",
290
+ "laterTitle": "Nothing to practise right now.",
291
+ "laterNext": "The next card is due {when}. It will come by itself."
292
+ },
293
+ "previewNoAdd": "The preview can't add cards; run dracosh for that.",
294
+ "previewNoDecks": "The preview has one demo deck; run dracosh for yours.",
295
+ "pausedUntilNotice": "Paused until {time}",
296
+ "pausedUntilList": "Paused until {time}. ",
297
+ "saveFailed": "Couldn't save progress: {error}",
298
+ "unknownCommand": "Unknown command {name}",
299
+ "progressReset": "Your progress starts over. Your cards are all still here.",
300
+ "cardNotSaved": "The card you were writing wasn't saved.",
301
+ "deckReadyElsewhere": "\"{deck}\" is ready; you're still practising \"{current}\". Switch with /decks.",
302
+ "hintLabel": "hint",
303
+ "didYouKnow": "Did you know it?",
304
+ "gradeKeys": "1 no · 2 yes",
305
+ "sessionDone": {
306
+ "one": "Session done: 1 card. From now on, one every few minutes.",
307
+ "other": "Session done: {count} cards. From now on, one every few minutes."
308
+ },
309
+ "sessionProgress": "{done} of {count} in this session",
310
+ "escAgain": "Esc again to quit.",
311
+ "correctConfirm": "Count \"{answer}\" as right, and accept it from now on?"
312
+ },
313
+ "dragon": {
314
+ "stages": {
315
+ "hatchling": "Hatchling",
316
+ "imp": "Imp",
317
+ "whelp": "Whelp",
318
+ "drake": "Drake",
319
+ "dragon": "Dragon",
320
+ "legend": "Legend"
321
+ },
322
+ "elements": {
323
+ "earth": {
324
+ "name": "Earth",
325
+ "adjective": "Earth"
326
+ },
327
+ "wind": {
328
+ "name": "Wind",
329
+ "adjective": "Wind"
330
+ },
331
+ "water": {
332
+ "name": "Water",
333
+ "adjective": "Water"
334
+ },
335
+ "ice": {
336
+ "name": "Ice",
337
+ "adjective": "Ice"
338
+ },
339
+ "fire": {
340
+ "name": "Fire",
341
+ "adjective": "Fire"
342
+ },
343
+ "cosmos": {
344
+ "name": "Cosmos",
345
+ "adjective": "Cosmic"
346
+ }
347
+ },
348
+ "named": "{element} {stage}"
349
+ },
350
+ "badges": {
351
+ "hello": {
352
+ "name": "Hello!",
353
+ "desc": "your first correct answer"
354
+ },
355
+ "first-steps": {
356
+ "name": "First steps",
357
+ "desc": "10 correct answers"
358
+ },
359
+ "century": {
360
+ "name": "Century",
361
+ "desc": "100 correct answers"
362
+ },
363
+ "thousand": {
364
+ "name": "Thousand",
365
+ "desc": "1,000 correct answers"
366
+ },
367
+ "five-thousand": {
368
+ "name": "Five thousand",
369
+ "desc": "5,000 correct answers"
370
+ },
371
+ "ten-thousand": {
372
+ "name": "Ten thousand",
373
+ "desc": "10,000 correct answers"
374
+ },
375
+ "dragons-hoard": {
376
+ "name": "Dragon's hoard",
377
+ "desc": "20,000 correct answers"
378
+ },
379
+ "on-a-roll": {
380
+ "name": "On a roll",
381
+ "desc": "3-day streak"
382
+ },
383
+ "week": {
384
+ "name": "Full week",
385
+ "desc": "7-day streak"
386
+ },
387
+ "fortnight": {
388
+ "name": "Fortnight",
389
+ "desc": "14-day streak"
390
+ },
391
+ "month": {
392
+ "name": "Iron habit",
393
+ "desc": "30-day streak"
394
+ },
395
+ "hundred-days": {
396
+ "name": "Centurion",
397
+ "desc": "100-day streak"
398
+ },
399
+ "dragonheart": {
400
+ "name": "Dragonheart",
401
+ "desc": "180-day streak"
402
+ },
403
+ "keeper": {
404
+ "name": "Word keeper",
405
+ "desc": "10 cards mastered"
406
+ },
407
+ "collector": {
408
+ "name": "Collector",
409
+ "desc": "25 cards mastered"
410
+ },
411
+ "dictionary": {
412
+ "name": "Walking dictionary",
413
+ "desc": "50 cards mastered"
414
+ },
415
+ "lexicon": {
416
+ "name": "Living lexicon",
417
+ "desc": "150 cards mastered"
418
+ },
419
+ "explorer": {
420
+ "name": "Explorer",
421
+ "desc": "250 cards practised"
422
+ },
423
+ "flawless": {
424
+ "name": "Flawless",
425
+ "desc": "10+ answers in a day, no miss"
426
+ },
427
+ "overachiever": {
428
+ "name": "Overachiever",
429
+ "desc": "double your daily goal in a day"
430
+ },
431
+ "marathon": {
432
+ "name": "Marathon",
433
+ "desc": "30 correct answers in a day"
434
+ },
435
+ "hot-streak": {
436
+ "name": "Hot streak",
437
+ "desc": "10 correct in a row"
438
+ },
439
+ "unstoppable": {
440
+ "name": "Unstoppable",
441
+ "desc": "25 correct in a row"
442
+ },
443
+ "combo-master": {
444
+ "name": "Combo master",
445
+ "desc": "50 correct in a row"
446
+ },
447
+ "early-bird": {
448
+ "name": "Early bird",
449
+ "desc": "a correct answer before 8:00"
450
+ },
451
+ "night-owl": {
452
+ "name": "Night owl",
453
+ "desc": "a correct answer after 23:00"
454
+ },
455
+ "comeback": {
456
+ "name": "Welcome back",
457
+ "desc": "back after 5+ days away"
458
+ },
459
+ "redemption": {
460
+ "name": "Redemption",
461
+ "desc": "5 cards missed today, got right later the same day"
462
+ },
463
+ "frozen": {
464
+ "name": "Frozen in time",
465
+ "desc": "a freeze saved your streak"
466
+ },
467
+ "weekend": {
468
+ "name": "Weekend warrior",
469
+ "desc": "goal on both Saturday and Sunday"
470
+ },
471
+ "perfect-week": {
472
+ "name": "Perfect week",
473
+ "desc": "goal every day, Monday to Sunday"
474
+ },
475
+ "regular": {
476
+ "name": "Regular",
477
+ "desc": "goal on 20 days in one month"
478
+ },
479
+ "machine": {
480
+ "name": "The machine",
481
+ "desc": "goal on 25 days in one month"
482
+ },
483
+ "hundred-club": {
484
+ "name": "Hundred club",
485
+ "desc": "goal reached on 100 days in total"
486
+ },
487
+ "one-ring": {
488
+ "name": "The One...",
489
+ "desc": "every other badge"
490
+ },
491
+ "dragons-die": {
492
+ "name": "Dragon's die",
493
+ "desc": "lost a 30+ day streak, then built a longer one"
494
+ }
495
+ },
496
+ "cheers": {
497
+ "goal": "Daily goal reached · {count}-day streak",
498
+ "allDone": "All done for today · {count}-day streak",
499
+ "evolved": "Your companion evolved: {name}!",
500
+ "badge": "Badge unlocked: {name} · {desc}",
501
+ "combo": "Combo ×{count}"
502
+ },
503
+ "header": {
504
+ "deckLine": " {deck}{cards} · every {interval}",
505
+ "cards": " · {cards}",
506
+ "streak": " {count}-day streak",
507
+ "noStreak": "no streak yet",
508
+ "atRisk": " · at risk today",
509
+ "daysOffUntil": " · days off until {day}",
510
+ "freezes": {
511
+ "one": " · {count} freeze",
512
+ "other": " · {count} freezes"
513
+ },
514
+ "today": "today ",
515
+ "goalReached": " goal reached",
516
+ "combo": " combo ×{count}"
517
+ },
518
+ "stats": {
519
+ "title": "Stats",
520
+ "legend": {
521
+ "goal": "goal ({goal})",
522
+ "halfway": "halfway",
523
+ "some": "some",
524
+ "none": "none",
525
+ "rest": "rest",
526
+ "today": "today"
527
+ },
528
+ "nextForm": " · next form at a {count}-day streak",
529
+ "fullyEvolved": " · fully evolved",
530
+ "streak": "{count}-day streak",
531
+ "noStreak": "no streak yet",
532
+ "bestAndFreezes": {
533
+ "one": " · best {best} · {count} freeze in stock",
534
+ "other": " · best {best} · {count} freezes in stock"
535
+ },
536
+ "today": "today {correct}/{goal} correct{accuracy}",
537
+ "accuracy": " · {percent}% accuracy",
538
+ "cards": "cards {mastered} mastered · {practised} practised · {total} correct in total",
539
+ "companion": "companion {name} ({stage}/6){next}",
540
+ "restDays": "rest days {weekends}{daysOff}",
541
+ "weekends": "weekends",
542
+ "noWeekends": "no weekends",
543
+ "daysOff": " · days off {ranges}",
544
+ "month": "Goal reached on {goalDays} of {days} days · {correct} correct answers",
545
+ "weekdays": "M T W T F S S",
546
+ "badgesLine": "{unlocked}/{total} badges · /badges lists them all"
547
+ },
548
+ "badgesScreen": {
549
+ "title": "Badges",
550
+ "new": " {count} new",
551
+ "unlocked": "unlocked {day}",
552
+ "locked": "still locked",
553
+ "secretName": "???",
554
+ "secretDesc": "a secret, keep playing"
555
+ },
556
+ "companion": {
557
+ "title": "Companion",
558
+ "yourDragon": "Your dragon: ",
559
+ "element": "Element: {element}",
560
+ "rolled": " · rolled a {face} on Dragon's die, {day}",
561
+ "noElement": "No element yet. Some say a die decides it…",
562
+ "evolves": "Evolves with your best streak ({count} days) and never loses a form.",
563
+ "fromStart": "from the start",
564
+ "needsDays": "needs {count} days",
565
+ "days": "{count} days",
566
+ "now": " ← now",
567
+ "unknown": "???"
568
+ },
569
+ "missed": {
570
+ "title": "Missed",
571
+ "today": "today",
572
+ "yesterday": "yesterday · {date}",
573
+ "nothingToday": "Nothing missed so far today.",
574
+ "nothingThatDay": "Nothing missed that day.",
575
+ "times": " · missed {count}×",
576
+ "youWrote": "you wrote: {answer}",
577
+ "noAnswer": "answer shown, didn't know",
578
+ "recovered": " · got it right since",
579
+ "more": "…and {count} more",
580
+ "keys": "←/→ day · esc back"
581
+ },
582
+ "summary": {
583
+ "title": "Session over",
584
+ "result": "{correct}/{asked} correct · {percent}%",
585
+ "bestCombo": " · best combo ×{count}",
586
+ "today": "today ",
587
+ "goalReached": " goal reached",
588
+ "streak": "{count}-day streak",
589
+ "noStreak": "no streak yet",
590
+ "atRisk": " · still at risk today",
591
+ "waiting": "Your {name} will be waiting.",
592
+ "keys": "see you later · any key to leave"
593
+ },
594
+ "hatch": {
595
+ "stirs": "something stirs inside…",
596
+ "hatching": "it's hatching…",
597
+ "hatched": "Your dragon has hatched!",
598
+ "line": "Answer cards to keep it happy. It grows with your streak.",
599
+ "keysSkip": "any key to skip",
600
+ "keysStart": "any key to start"
601
+ },
602
+ "evolution": {
603
+ "evolved": "Your companion evolved: {name}!",
604
+ "happening": "Something is happening…",
605
+ "keysHurry": "any key to hurry it up",
606
+ "keysContinue": "enter continue",
607
+ "title": "Evolution"
608
+ },
609
+ "theOne": {
610
+ "stirring": "the lava is stirring…",
611
+ "rises": "something rises…",
612
+ "title": "The One...",
613
+ "line": "Every badge is yours. The hoard is complete.",
614
+ "keysSkip": "any key to skip",
615
+ "keysContinue": "any key to continue"
616
+ },
617
+ "die": {
618
+ "title": "Dragon's die",
619
+ "rolling": "the die is rolling…",
620
+ "result": "{face} · {element}",
621
+ "awakened": "Your dragon awakened the power of {element}. It's yours for good.",
622
+ "keysSkip": "any key to skip",
623
+ "keysContinue": "any key to continue"
624
+ },
625
+ "badgeUnlock": {
626
+ "label": "Badge unlocked: "
627
+ },
628
+ "input": {
629
+ "unknownCommand": "unknown command",
630
+ "notACommand": "no command like that · enter sends it as your answer"
631
+ },
632
+ "pause": {
633
+ "help": "Try /pause 30m, /pause 2h, /pause 3d or /pause 24.12 2.01",
634
+ "past": "Those days are already over. Days off can only start today or later.",
635
+ "dayOff": "Day off on {day}: your streak is safe.",
636
+ "daysOff": "Days off {range}: your streak is safe.",
637
+ "off": "Pause off: questions are back, and no days off are planned",
638
+ "list": "Days off: {ranges}",
639
+ "none": "No days off planned. {help}"
640
+ },
641
+ "errors": {
642
+ "nothingToCorrect": "There is no wrong answer to correct.",
643
+ "deckGone": "The deck \"{deck}\" is gone.",
644
+ "slashAnswer": "An answer can't start with /: in the quiz that opens the commands.",
645
+ "slashFront": "You type this as an answer in the quiz, so it can't start with /.",
646
+ "noDeck": "There's no deck called \"{deck}\". Your decks: {decks}.",
647
+ "noDecksYet": "none yet",
648
+ "emptyLibrary": "Your library has no decks yet.",
649
+ "deckNeedsName": "A deck needs a name.",
650
+ "deckNameTooLong": "Keep the deck name to {max} characters or fewer.",
651
+ "deckExists": "There is already a deck called \"{deck}\".",
652
+ "cardNeedsFront": "A card needs a front.",
653
+ "cardNeedsBack": "A card needs at least one answer on the back.",
654
+ "frontExists": "\"{front}\" is already in this deck.",
655
+ "newerLibrary": "This library was saved by a newer version of Dracosh (format {format}). Please update Dracosh.",
656
+ "newerState": "{file} was saved by a newer version of Dracosh. Please update Dracosh.",
657
+ "damaged": "{file} looks damaged ({why}). Run \"dracosh restore\" to bring back a backup.",
658
+ "cantRead": "Can't read {file}: {error}",
659
+ "notABackup": "{file} isn't a Dracosh backup.",
660
+ "alreadyRunning": "Dracosh is already running in another window (process {pid}). Close it first: two windows would overwrite each other's progress.",
661
+ "why": {
662
+ "notLibrary": "not a library",
663
+ "deck": "a deck without a name or an id",
664
+ "card": "a card without a front or an answer",
665
+ "cardDeck": "a card in a deck that doesn't exist",
666
+ "cardIds": "two cards with the same id",
667
+ "noProgress": "no progress in it",
668
+ "progressEntry": "a card without its box or date",
669
+ "streak": "the streak and badges are unreadable"
670
+ },
671
+ "slashSwitch": "\"{text}\" would have to be typed, and in the quiz / opens the commands. Change that card first."
672
+ },
673
+ "cli": {
674
+ "help": "Dracosh: a vocabulary and quiz trainer for your terminal\n\nUsage: dracosh [options]\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 --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 -y, --yes 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.",
675
+ "badEvery": "Invalid --every \"{value}\". Use e.g. 30s, 10m, 1h.",
676
+ "badVolume": "Invalid --volume \"{value}\". Use a number from 0 to 1.",
677
+ "unknownCommand": "Unknown command \"{command}\". See dracosh --help.",
678
+ "needsTerminal": "dracosh needs an interactive terminal.",
679
+ "cantUseFolder": "Dracosh can't use {home} for its data ({code}). Point DRACOSH_HOME at a folder you can write to.",
680
+ "stats": {
681
+ "streak": {
682
+ "one": "Streak {days} days (best {best}) · {count} freeze in stock",
683
+ "other": "Streak {days} days (best {best}) · {count} freezes in stock"
684
+ },
685
+ "today": "Today {correct}/{goal} correct{goal_reached}",
686
+ "goalReached": " ✓ goal reached",
687
+ "badges": "Badges {unlocked}/{total} · {mastered} cards mastered · companion: {companion}",
688
+ "practised": "{count} cards practised, {correct}/{total} correct ({percent}%)",
689
+ "box": "box {box} ({days}d): {count}"
690
+ },
691
+ "data": {
692
+ "where": "Dracosh keeps everything in {home}",
693
+ "library": " library.json your decks and cards: {decks} · {cards}{missing}",
694
+ "state": " state.json progress, streak and badges: {count} practised{missing}",
695
+ "settings": " settings.json your settings{missing}",
696
+ "backups": " backups/ {what}",
697
+ "backupsSome": "{backups}, the newest from {time}",
698
+ "none": "none yet",
699
+ "notCreated": " (not created yet)",
700
+ "footer": "To keep it somewhere else (a synced folder, say), set DRACOSH_HOME. dracosh restore brings a backup back."
701
+ },
702
+ "restore": {
703
+ "none": "No backups yet. Dracosh makes one every day you use it, in {dir}",
704
+ "listTitle": "Backups in {dir}, newest first:",
705
+ "row": "{decks} · {cards} · {practised} practised",
706
+ "howTo": "Bring one back with: dracosh restore <number>",
707
+ "noSuch": "There's no backup number {number}. Run \"dracosh restore\" to see the list.",
708
+ "what": {
709
+ "cards": "cards",
710
+ "progress": "progress",
711
+ "settings": "settings"
712
+ },
713
+ "bringsBack": "This brings back your {what} from the backup of {time}.",
714
+ "undo": "What you have now is backed up first, so you can undo this.",
715
+ "needsYes": "Add --yes to restore without a prompt.",
716
+ "ask": "Restore it?",
717
+ "askSuffix": "[y/N]",
718
+ "yes": "y|yes",
719
+ "nothingChanged": "Nothing changed.",
720
+ "done": "Restored.",
721
+ "reasons": {
722
+ "daily": "daily",
723
+ "before-reset": "before reset",
724
+ "before-delete": "before delete",
725
+ "before-restore": "before restore"
726
+ }
727
+ },
728
+ "backups": {
729
+ "one": "{count} backup",
730
+ "other": "{count} backups"
731
+ }
732
+ },
733
+ "tips": {
734
+ "keys-enter": {
735
+ "cat": "Keys",
736
+ "text": "Don't want to wait? Press Enter between cards and the next one comes right away."
737
+ },
738
+ "keys-esc": {
739
+ "cat": "Keys",
740
+ "text": "Esc clears what you typed. Press it twice on an empty line to quit."
741
+ },
742
+ "keys-wake": {
743
+ "cat": "Keys",
744
+ "text": "Leave Dracosh alone for a few minutes and your dragon dozes off. Any key wakes it."
745
+ },
746
+ "keys-filter": {
747
+ "cat": "Keys",
748
+ "text": "Type / and a letter or two to narrow the commands: /pa finds /pause."
749
+ },
750
+ "cards-decks": {
751
+ "cat": "Cards",
752
+ "text": "/decks switches to another deck or starts a new one. Dracosh opens that deck next time too."
753
+ },
754
+ "cards-add": {
755
+ "cat": "Cards",
756
+ "text": "/add puts new cards into the deck you're practising. Esc when you're done."
757
+ },
758
+ "cards-typo": {
759
+ "cat": "Cards",
760
+ "text": "One wrong letter in a longer word still counts as right. Dracosh shows you the correct spelling."
761
+ },
762
+ "cards-boxes": {
763
+ "cat": "Cards",
764
+ "text": "A right answer sends a card to a later box: it comes back in 1, 3, 7, 14, then 30 days."
765
+ },
766
+ "cards-miss": {
767
+ "cat": "Cards",
768
+ "text": "A missed card goes back to the first box and comes back within minutes, until it sticks."
769
+ },
770
+ "cards-hint": {
771
+ "cat": "Cards",
772
+ "text": "Stuck on a card? /hint reveals one more letter. The card still counts, but stays in its box."
773
+ },
774
+ "cards-correct": {
775
+ "cat": "Cards",
776
+ "text": "Marked wrong although you were right? Type /correct before the next card and it counts."
777
+ },
778
+ "cards-dont-know": {
779
+ "cat": "Cards",
780
+ "text": "Don't know it? Press Enter with nothing typed, look, then 1 if you didn't know it or 2 if you did."
781
+ },
782
+ "cards-missed": {
783
+ "cat": "Cards",
784
+ "text": "/missed lists the cards you got wrong today. Use ← and → to look at earlier days."
785
+ },
786
+ "cards-new": {
787
+ "cat": "Cards",
788
+ "text": "Dracosh mixes new cards in with your reviews, up to 20 new ones a day."
789
+ },
790
+ "streak-goal": {
791
+ "cat": "Streak",
792
+ "text": "Reach your daily goal to keep your streak going. You can change the goal in /settings."
793
+ },
794
+ "streak-freeze": {
795
+ "cat": "Streak",
796
+ "text": "A freeze saves your streak on a day you missed. You start with two and get one back each week."
797
+ },
798
+ "streak-weekends": {
799
+ "cat": "Streak",
800
+ "text": "Weekends are rest days by default: skipping them never breaks your streak. Change it in /settings."
801
+ },
802
+ "streak-days-off": {
803
+ "cat": "Streak",
804
+ "text": "Going away? /pause 7d keeps your streak safe for a week. /pause 24.12 2.01 takes dates."
805
+ },
806
+ "streak-stats": {
807
+ "cat": "Streak",
808
+ "text": "/stats shows your streak and a calendar of the month. Use ← and → to see other months."
809
+ },
810
+ "dragon-forms": {
811
+ "cat": "Your dragon",
812
+ "text": "Your dragon grows with your best streak: a new form at 7, 30, 90, 180 and 365 days."
813
+ },
814
+ "dragon-companion": {
815
+ "cat": "Your dragon",
816
+ "text": "/companion shows your dragon and the forms still ahead of it."
817
+ },
818
+ "dragon-combo": {
819
+ "cat": "Your dragon",
820
+ "text": "Three right answers in a row and your dragon starts to glow. Keep the combo going!"
821
+ },
822
+ "dragon-badges": {
823
+ "cat": "Your dragon",
824
+ "text": "/badges shows every badge and what unlocks it. One of them stays secret until you win it."
825
+ },
826
+ "pause-break": {
827
+ "cat": "Breaks",
828
+ "text": "Need some focus? /pause 30m or /pause 2h holds the cards. /pause off brings them back."
829
+ },
830
+ "pause-quiet": {
831
+ "cat": "Breaks",
832
+ "text": "Set quiet hours in /settings and Dracosh stays silent while you sleep."
833
+ },
834
+ "settings-every": {
835
+ "cat": "Settings",
836
+ "text": "Cards too often, or not often enough? Change the interval in /settings."
837
+ },
838
+ "settings-sound": {
839
+ "cat": "Settings",
840
+ "text": "Sound and volume are in /settings, along with quiet hours for the evening."
841
+ },
842
+ "data-backup": {
843
+ "cat": "Your data",
844
+ "text": "Dracosh backs up your cards and progress every day. dracosh restore brings a backup back."
845
+ },
846
+ "cards-line": {
847
+ "cat": "Cards",
848
+ "text": "In /add one line makes a card: kot = cat; kitty. The ; separates right answers, // adds an example."
849
+ },
850
+ "cards-paste": {
851
+ "cat": "Cards",
852
+ "text": "Paste a whole list into /add, one card per line. You check it before anything is saved."
853
+ },
854
+ "cards-cloze": {
855
+ "cat": "Cards",
856
+ "text": "In /add, braces make a gap: I {{look forward}} to it. In the quiz you type only the gap."
857
+ },
858
+ "cards-direction": {
859
+ "cat": "Cards",
860
+ "text": "A deck can be asked front to back, back to front or both ways. /decks, then → changes it."
861
+ },
862
+ "settings-rhythm": {
863
+ "cat": "Settings",
864
+ "text": "Want to study in one go? Set the rhythm to session in /settings: Enter brings the next card."
865
+ }
866
+ },
867
+ "preview": {
868
+ "title": "Preview",
869
+ "subtitle": " made-up data · nothing is saved",
870
+ "keys": "↑/↓ choose · enter play · esc quit",
871
+ "replay": "enter replay · esc back",
872
+ "evolution": "Evolution → {name}",
873
+ "evolutionHint": "reached at a {count}-day best streak",
874
+ "scenes": {
875
+ "hatch": {
876
+ "label": "Hatching",
877
+ "hint": "the first-launch intro"
878
+ },
879
+ "mascot": {
880
+ "label": "Mascot lab",
881
+ "hint": "forms, faces, elements, moves, glow"
882
+ },
883
+ "quiz": {
884
+ "label": "Quiz",
885
+ "hint": "a live round on demo words, goal at 5"
886
+ },
887
+ "add": {
888
+ "label": "Adding cards",
889
+ "hint": "/add: one line per card, a pasted list, the direction"
890
+ },
891
+ "reveal": {
892
+ "label": "Show and grade",
893
+ "hint": "empty Enter, then 1 or 2"
894
+ },
895
+ "cloze": {
896
+ "label": "Cloze cards",
897
+ "hint": "one gap at a time"
898
+ },
899
+ "quiz-look": {
900
+ "label": "Quiz screen",
901
+ "hint": "the header with any form and element"
902
+ },
903
+ "unlock": {
904
+ "label": "Badge unlocked",
905
+ "hint": "three badges won at once"
906
+ },
907
+ "the-one": {
908
+ "label": "The One...",
909
+ "hint": "the ring rises from the lava"
910
+ },
911
+ "die": {
912
+ "label": "Dragon's die",
913
+ "hint": "the secret badge: a roll for an element"
914
+ },
915
+ "confetti": {
916
+ "label": "Confetti",
917
+ "hint": "the daily-goal burst"
918
+ },
919
+ "stats": {
920
+ "label": "Stats",
921
+ "hint": "calendar tiles, weeks of fake history"
922
+ },
923
+ "badges": {
924
+ "label": "Badges",
925
+ "hint": "all unlocked, three of them new"
926
+ },
927
+ "summary": {
928
+ "label": "Session summary",
929
+ "hint": "what you see when quitting"
930
+ }
931
+ },
932
+ "mascotLab": "Mascot lab",
933
+ "mascotLine": " · face {face} · {element}{glow}",
934
+ "noElement": "no element",
935
+ "glow": " · combo glow",
936
+ "mascotKeys": "←/→ form · ↑/↓ face · e element · j jump · s shake · h glow · esc back",
937
+ "lookKeys": "{stage} · {element} · ←/→ form · e element · c combo · esc back",
938
+ "faces": {
939
+ "idle": "idle",
940
+ "smile": "smile",
941
+ "happy": "happy",
942
+ "sad": "sad",
943
+ "blink": "blink",
944
+ "sleep": "sleep"
945
+ }
946
+ },
947
+ "alerts": {
948
+ "newCard": "A new card is waiting"
949
+ },
950
+ "tour": {
951
+ "deck": "Getting started",
952
+ "cards": [
953
+ {
954
+ "front": "Welcome! Every few minutes a card asks you something. Type the answer and press Enter. Try it and type `hello`",
955
+ "back": [
956
+ "hello"
957
+ ],
958
+ "example": "Press `Enter` now for the next card, or wait and it will come by itself."
959
+ },
960
+ {
961
+ "front": "Small typos still count. Type `dragon`, but miss a letter on purpose (like `dragn`)",
962
+ "back": [
963
+ "dragon"
964
+ ],
965
+ "example": "A typo counts as right, and Dracosh shows you the correct spelling."
966
+ },
967
+ {
968
+ "front": "A card can accept more than one answer. What is 2 + 2? (`4` and `four` both work)",
969
+ "back": [
970
+ "4",
971
+ "four"
972
+ ],
973
+ "example": "Every right answer moves a card to a later box, so you see it less and less often."
974
+ },
975
+ {
976
+ "front": "Stuck? Type `/hint` and press Enter, and the answer shows up letter by letter. Try it, then type `apple`",
977
+ "back": [
978
+ "apple"
979
+ ],
980
+ "example": "A hinted answer still counts, but the card stays in its box for now."
981
+ },
982
+ {
983
+ "front": "What is your dragon's secret name? Nobody knows, so get this one wrong on purpose and type `dog`",
984
+ "back": [
985
+ "Asogaras"
986
+ ],
987
+ "example": "In your own decks a missed card comes back sooner. If you were marked wrong by mistake, type `/correct` now."
988
+ },
989
+ {
990
+ "front": "Don't know an answer? Press Enter with nothing typed: the answer shows up, and you press 2 if you knew it or 1 if you didn't. Try it, or type `show`",
991
+ "back": [
992
+ "show"
993
+ ],
994
+ "example": "Grade yourself honestly: it decides when a card comes back. Whole sentences are easiest this way."
995
+ },
996
+ {
997
+ "front": "Type `/` at any time to see all commands. Try `/badges` after this card. For now, type `ok`",
998
+ "back": [
999
+ "ok",
1000
+ "okay"
1001
+ ],
1002
+ "example": "`/stats` shows your calendar, `/companion` your dragon, `/settings` how often cards come."
1003
+ },
1004
+ {
1005
+ "front": "Reach your daily goal every day to keep your streak. Your dragon grows with it. Type `every day`",
1006
+ "back": [
1007
+ "every day",
1008
+ "everyday",
1009
+ "daily"
1010
+ ],
1011
+ "example": "Miss a day and a freeze saves your streak, if you have one left."
1012
+ },
1013
+ {
1014
+ "front": "Need a break? `/pause 1h` holds the cards for an hour, `/pause 3d` gives you days off. For now, type `later`",
1015
+ "back": [
1016
+ "later"
1017
+ ],
1018
+ "example": "Leave Dracosh alone for a few minutes and the dragon dozes off. Any key wakes it."
1019
+ },
1020
+ {
1021
+ "front": "That's the tour! Type `done`",
1022
+ "back": [
1023
+ "done"
1024
+ ],
1025
+ "example": "Now make it yours and type `/add` to start your own deck. The tour makes room for it."
1026
+ }
1027
+ ]
1028
+ }
1029
+ }