diff --git a/src/main/frontend/extensions/fsrs.cljs b/src/main/frontend/extensions/fsrs.cljs index f60ffd6f4f..841c75d139 100644 --- a/src/main/frontend/extensions/fsrs.cljs +++ b/src/main/frontend/extensions/fsrs.cljs @@ -215,16 +215,15 @@ (component-block/blocks-container option [block-entity])) [:div.mt-8.pb-2 (if (contains? #{:show-cloze :show-answer} next-phase) - (btn-with-shortcut {:btn-text (t - (case next-phase - :show-answer - :flashcards/modal-btn-show-answers - :show-cloze - :flashcards/modal-btn-show-clozes - :init - :flashcards/modal-btn-hide-answers)) + (btn-with-shortcut {:btn-text (case next-phase + :show-answer + (t :flashcards/modal-btn-show-answers) + :show-cloze + (t :flashcards/modal-btn-show-clozes) + :init + (t :flashcards/modal-btn-hide-answers)) :shortcut "s" - :id (str "card-answers") + :id "card-answers" :on-click #(swap! *phase (fn [phase] (phase->next-phase block-entity phase)))}) diff --git a/src/resources/dicts/en.edn b/src/resources/dicts/en.edn index 0007dfa5f8..e7ade6a325 100644 --- a/src/resources/dicts/en.edn +++ b/src/resources/dicts/en.edn @@ -247,6 +247,10 @@ :flashcards/modal-welcome-title "Time to create a card!" :flashcards/modal-welcome-desc-1 "You can add \"{1}\" to any block to turn it into a card or trigger \"/cloze\" to add some clozes." :flashcards/modal-finished "Congrats, you've reviewed all the cards for this query, see you next time! 💯" + :flashcards/modal-btn-show-answers "Show answers" + :flashcards/modal-btn-hide-answers "Hide answers" + :flashcards/modal-btn-show-clozes "Show clozes" + :home "Home" :new-page "New page:" :new-tag "New tag:"