diff --git a/frontend/locales.clj b/frontend/locales.clj index 3ebd7f23f..44a6f30b0 100644 --- a/frontend/locales.clj +++ b/frontend/locales.clj @@ -18,23 +18,22 @@ (defn- find-translations-in-form [form] - (let [messages (atom [])] - (run! (fn [node] + (reduce (fn [messages node] (let [found (->> node (filter #(and (seq? %) (= :string (first %)))) (map (fn [item] (let [mdata (meta item)] {:code (edn/read-string (second item)) :line (get-in mdata [::pa/start :row])}))))] - (swap! messages into found))) + (into messages found))) + [] (->> (tree-seq seq? seq form) (filter #(and (seq? %) (seq? (second %)) (= :list (first %)) (= :symbol (first (second %))) (or (= "t" (second (second %))) - (= "tr" (second (second %)))))))) - @messages)) + (= "tr" (second (second %))))))))) (defn- find-translations [path] diff --git a/frontend/resources/locales.json b/frontend/resources/locales.json index f59f34b00..0a957f265 100644 --- a/frontend/resources/locales.json +++ b/frontend/resources/locales.json @@ -197,11 +197,11 @@ } }, "ds.num-elements" : { + "used-in" : [ "src/uxbox/main/ui/dashboard/colors.cljs:111" ], "translations" : { "en" : null, "fr" : null - }, - "used-in" : [ "src/uxbox/main/ui/dashboard/colors.cljs:111" ] + } }, "ds.position" : { "used-in" : [ "src/uxbox/main/ui/workspace/sidebar/options/icon_measures.cljs:52" ], @@ -239,11 +239,11 @@ } }, "ds.settings.icons" : { + "used-in" : [ "src/uxbox/main/ui/workspace/sidebar/icons.cljs:72" ], "translations" : { "en" : null, "fr" : null - }, - "used-in" : [ "src/uxbox/main/ui/workspace/sidebar/icons.cljs:72" ] + } }, "ds.size" : { "used-in" : [ "src/uxbox/main/ui/workspace/sidebar/options/icon_measures.cljs:33" ], @@ -582,11 +582,11 @@ } }, "settings.exit" : { + "used-in" : [ "src/uxbox/main/ui/settings/header.cljs:46" ], "translations" : { "en" : null, "fr" : null - }, - "used-in" : [ "src/uxbox/main/ui/settings/header.cljs:46" ] + } }, "settings.notifications" : { "used-in" : [ "src/uxbox/main/ui/settings/header.cljs:43" ],