fix: translations

This commit is contained in:
Konstantinos Kaloutas
2023-06-09 13:54:32 +03:00
parent d13ba8d9e7
commit 135e3228b6
29 changed files with 40 additions and 195 deletions

View File

@@ -203,7 +203,7 @@
#(do
;;(if theme (select-a-plugin-theme id))
(notification/show!
(str (t :plugin/update) (t :plugins) ": " name " - " (.-version (.-options pl))) :success)
(t :plugin/update-plugin name (.-version (.-options pl))) :success)
(state/consume-updates-from-coming-plugin! payload true))))
(do ;; register new
@@ -211,7 +211,7 @@
(js/LSPluginCore.register (bean/->js {:key id :url dst}))
(fn [] (when theme (js/setTimeout #(select-a-plugin-theme id) 300))))
(notification/show!
(str (t :plugin/installed) (t :plugins) ": " name) :success)))))
(t :plugin/installed-plugin name) :success)))))
:error
(let [error-code (keyword (string/replace (:error-code payload) #"^[\s\:\[]+" ""))
@@ -219,7 +219,7 @@
[msg type] (case error-code
:no-new-version
[(str (t :plugin/up-to-date) " :)") :success]
[(t :plugin/up-to-date ":)") :success]
[error-code :error])
pending? (seq (:plugin/updates-pending @state/state))]