Tutorial fix and refactor. Update docs

* Some langs like es didn't have tutorials translated and were
  pretending to
* it lang had tutorials but they weren't being used
* Moved tutorials to the more appropriate src/resources/tutorials
* Also fixed typos and bb task
This commit is contained in:
Gabriel Horner
2023-05-24 16:54:12 -04:00
parent 28ff6b1894
commit ad3eda7c25
47 changed files with 41 additions and 51 deletions

View File

@@ -60,9 +60,9 @@
{:translation-key k
;; Shorten values
:string-to-translate (shorten v 50)
:file (str "dicts/"
(-> lang name string/lower-case)
".edn")}))
:file (if (= "tutorial" (namespace k))
(str "Under tutorials/")
(str "dicts/" (-> lang name string/lower-case) ".edn"))}))
(sort-by (juxt :file :translation-key)))]
(if (:copy options)
(doseq [[file missing-for-file] (group-by :file sorted-missing)]