···1919import { getColor, getSubjectTileProps } from '$/utils/subject_utils.ts'
2020import { playAudio } from '$/utils/audio.ts'
2121import { checkSuccess } from '$/utils/check_answer.ts'
2222+import { updateStreak } from '$/utils/streak.ts'
2223import getString from '$/utils/get_string.ts'
2324import type { HAnswerInput } from '$/components/h-answer-input.ts'
2425···99100 Assignment
100101 >
101102 await app.persist()
103103+ await updateStreak()
102104103105 const answerInputEl = this.querySelector('h-answer-input') as
104106 | HAnswerInput
+3
www/static/strings/en.json
···5656 "mnemonic": "Mnemonic",
5757 "new": "New",
5858 "no_games": "No games available for this language.",
5959+ "days_in_a_row": "days in a row",
6060+ "longest_streak": "longest streak",
5961 "no_new_lessons": "No new lessons",
6062 "no_new_reviews": "No new reviews",
6163 "open_source": "Hanzi Offline is Open Source",
···8082 "settings": "Settings",
8183 "show_answer": "Show Answer",
8284 "sound": "Sound",
8585+ "studied": "Studied",
8386 "study": "Study",
8487 "study_group_size": "Study Group Size",
8588 "study_group_size_hint": "The maximum number of items to study at a time.",