Skip to content

Commit

Permalink
Use more precise wording
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmotta committed Oct 10, 2023
1 parent d1c68ec commit c2cb287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .clj-kondo/status-im/hooks/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:require [clj-kondo.hooks-api :as api]))

(defn i18n-label
"Verify call to `i18n/label` pass the translation keyword qualified with `:t`."
"Verify call to `i18n/label` pass the translation keyword qualified with `t`."
[{:keys [node]}]
(when (api/list-node? node)
(let [[symbol-node translation-key-node & _] (:children node)]
Expand All @@ -11,7 +11,7 @@
(api/keyword-node? translation-key-node)
(not= "t" (-> translation-key-node api/sexpr namespace)))
(let [{:keys [row col end-col]} (meta translation-key-node)]
(api/reg-finding! {:message "Translation keyword should be qualified with :t"
(api/reg-finding! {:message "Translation keyword should be qualified with \"t\""
:row row
:col col
:end-col end-col
Expand Down

0 comments on commit c2cb287

Please sign in to comment.