Skip to content

Commit

Permalink
Adapt to the new way of getting a translator
Browse files Browse the repository at this point in the history
  • Loading branch information
egli committed Jun 18, 2024
1 parent 3c21305 commit 96bd7d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/daisyproducer2/words.clj
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
untranslated)]
(cond-> word
(and (contains? word :uncontracted) (nil? (:uncontracted word)))
(assoc :uncontracted (louis/translate untranslated (louis/get-tables 1 params)))
(assoc :uncontracted (louis/translate untranslated (louis/translator (louis/get-tables 1 params))))
(and (contains? word :contracted) (nil? (:contracted word)))
(assoc :contracted (louis/translate untranslated (louis/get-tables 2 params))))))
(assoc :contracted (louis/translate untranslated (louis/translator (louis/get-tables 2 params)))))))

(defn grades [grade]
(case grade ; convert grade into a list of grades
Expand Down

0 comments on commit 96bd7d6

Please sign in to comment.