diff --git a/resources/commands.js b/resources/commands.js index 8c3652ac539..a6e775bf66d 100644 --- a/resources/commands.js +++ b/resources/commands.js @@ -695,6 +695,12 @@ status.command({ ); return status.components.view({}, [text, image]); + }, + shortPreview: function(params) { + return status.components.text( + {}, + I18n.t('location_title') + ": " + params.address + ); } }).param({ name: "address", @@ -861,6 +867,14 @@ var send = { [amount, currency] ); }, + shortPreview: function (params, context) { + return status.components.text( + {}, + I18n.t('send_title') + ": " + + status.localizeNumber(params.amount, context.delimiter, context.separator) + + " ETH" + ); + }, handler: sendTransaction, validator: validateSend }; @@ -894,6 +908,14 @@ status.command({ + status.localizeNumber(params.amount, context.delimiter, context.separator) + " ETH"; }, + shortPreview: function (params, context) { + return status.components.text( + {}, + I18n.t('request_requesting') + " " + + status.localizeNumber(params.amount, context.delimiter, context.separator) + + " ETH" + ); + }, validator: function(params) { try { var val = web3.toWei(params.amount, "ether"); diff --git a/resources/console.js b/resources/console.js index b5f90be3e7d..6c09784c62a 100644 --- a/resources/console.js +++ b/resources/console.js @@ -16,7 +16,14 @@ I18n.translations = { password_validation_title: 'Password', faucet_incorrect_title: 'Incorrect faucet', - faucet_incorrect_description: 'Please, select a one from the list' + faucet_incorrect_description: 'Please, select a one from the list', + + debug_mode_title: 'Debug mode', + debug_mode_description: 'Starts/stops a debug mode', + + faucet_title: 'Faucet', + faucet_description: 'Get some ETH', + faucet_placeholder: 'Faucet URL' }, ru: { phone_title: 'Отправить номер телефона', @@ -1735,15 +1742,15 @@ function faucetSuggestions(params) { status.command({ name: "faucet", - title: "Faucet", - description: "Get some ETH", + title: I18n.t('faucet_title'), + description: I18n.t('faucet_description'), color: "#7099e6", registeredOnly: true, params: [{ name: "url", type: status.types.TEXT, suggestions: faucetSuggestions, - placeholder: "Faucet URL" + placeholder: I18n.t('faucet_placeholder') }], preview: function (params) { return status.components.text( @@ -1751,6 +1758,12 @@ status.command({ params.url ); }, + shortPreview: function (params) { + return status.components.text( + {}, + I18n.t('faucet_title') + ": " + params.url + ); + }, validator: function (params, context) { var f = faucets.map(function (entry) { return entry.url; @@ -1796,8 +1809,8 @@ function debugSuggestions(params) { status.command({ name: "debug", - title: "Debug", - description: "Starts/stops a debug server", + title: I18n.t('debug_mode_title'), + description: I18n.t('debug_mode_description'), color: "#7099e6", registeredOnly: true, params: [{ @@ -1808,7 +1821,13 @@ status.command({ preview: function (params) { return status.components.text( {}, - "Debug mode: " + params.mode + I18n.t('debug_mode_title') + ": " + params.mode + ); + }, + shortPreview: function (params) { + return status.components.text( + {}, + I18n.t('debug_mode_title') + ": " + params.mode ); } }); diff --git a/resources/status.js b/resources/status.js index c5eda97794f..d3577321cf7 100644 --- a/resources/status.js +++ b/resources/status.js @@ -32,6 +32,7 @@ Command.prototype.create = function (com) { this.icon = com.icon; this.params = com.params || []; this.preview = com.preview; + this["short-preview"] = com.shortPreview; this["suggestions-trigger"] = com.suggestionsTrigger || "on-change"; this.fullscreen = com.fullscreen; this.request = com.request; diff --git a/src/status_im/chat/handlers/commands.cljs b/src/status_im/chat/handlers/commands.cljs index 4e69f1c25c8..83aecff7c92 100644 --- a/src/status_im/chat/handlers/commands.cljs +++ b/src/status_im/chat/handlers/commands.cljs @@ -268,20 +268,26 @@ (register-handler :request-command-preview (u/side-effect! - (fn [_ [_ {{:keys [command params content-command type]} :content - :keys [message-id chat-id on-requested] :as message}]] - (let [path [(if (= :response (keyword type)) :responses :commands) - (if content-command content-command command) - :preview] - params {:parameters params - :context (merge {:platform platform/platform} i18n/delimeters)} - callback #(do (when-let [result (get-in % [:result :returned])] - (dispatch [:set-in [:message-data :preview message-id] - (if (string? result) - result - (cu/generate-hiccup result))])) - (when on-requested (on-requested %)))] - (status/call-jail chat-id path params callback))))) + (fn [{:keys [chats]} [_ {{:keys [command params content-command type]} :content + :keys [message-id chat-id on-requested] :as message} data-type]] + (if-not (get-in chats [chat-id :commands-loaded]) + (do (dispatch [:add-commands-loading-callback + chat-id + #(dispatch [:request-command-preview message data-type])]) + (dispatch [:load-commands! chat-id])) + (let [data-type (or data-type :preview) + path [(if (= :response (keyword type)) :responses :commands) + (if content-command content-command command) + data-type] + params {:parameters params + :context (merge {:platform platform/platform} i18n/delimeters)} + callback #(do (when-let [result (get-in % [:result :returned])] + (dispatch [:set-in [:message-data data-type message-id] + (if (string? result) + result + (cu/generate-hiccup result))])) + (when on-requested (on-requested %)))] + (status/call-jail chat-id path params callback)))))) (register-handler :set-command-parameter (fn [db [_ {:keys [value parameter]}]] diff --git a/src/status_im/chat/handlers/receive_message.cljs b/src/status_im/chat/handlers/receive_message.cljs index 06118b443ff..a29623e6448 100644 --- a/src/status_im/chat/handlers/receive_message.cljs +++ b/src/status_im/chat/handlers/receive_message.cljs @@ -11,7 +11,8 @@ :as c] [cljs.reader :refer [read-string]] [status-im.data-store.chats :as chats] - [status-im.utils.scheduler :as s])) + [status-im.utils.scheduler :as s] + [taoensso.timbre :as log])) (defn store-message [{chat-id :chat-id :as message}] (messages/save chat-id (dissoc message :new?))) @@ -51,6 +52,7 @@ (when (get-in message [:content :command]) (dispatch [:request-command-preview message])) (dispatch [::add-message chat-id' message']) + (dispatch [::set-last-message message']) (when (= (:content-type message') content-type-command-request) (dispatch [:add-request chat-id' message'])) (dispatch [:add-unviewed-message chat-id' message-id]) @@ -89,6 +91,11 @@ (fn [db [_ add-to-chat-id {:keys [chat-id new?] :as message}]] (cu/add-message-to-db db add-to-chat-id chat-id message new?))) +(register-handler ::set-last-message + (fn [{:keys [chats] :as db} [_ {:keys [chat-id] :as message}]] + (dispatch [:request-command-preview message :short-preview]) + (assoc-in db [:chats chat-id :last-message] message))) + (defn commands-loaded? [db chat-id] (get-in db [:chats chat-id :commands-loaded])) diff --git a/src/status_im/chat/subs.cljs b/src/status_im/chat/subs.cljs index e9176c6838c..e2615a7821e 100644 --- a/src/status_im/chat/subs.cljs +++ b/src/status_im/chat/subs.cljs @@ -57,12 +57,9 @@ (register-sub :get-commands-and-responses (fn [db [_ chat-id]] - (reaction (or (->> (get-in @db [:chats chat-id]) - ((juxt :commands :responses)) - (apply merge)) - (->> (get @db :all-commands) - ((juxt :commands :responses)) - (apply merge)))))) + (reaction (->> (get-in @db [:chats chat-id]) + ((juxt :commands :responses)) + (apply merge))))) (register-sub :get-chat-input-text (fn [db _] @@ -265,3 +262,16 @@ (fn [_ [_ id]] (let [contacts (subscribe [:get :contacts])] (reaction (:photo-path (@contacts id)))))) + +(register-sub :get-last-message + (fn [db [_ chat-id]] + (reaction + (let [{:keys [last-message messages]} (get-in @db [:chats chat-id])] + (first + (sort-by :clock-value > (conj messages last-message))))))) + +(register-sub :get-last-message-short-preview + (fn [db [_ chat-id]] + (let [last-message (subscribe [:get-last-message chat-id])] + (reaction + (get-in @db [:message-data :short-preview (:message-id @last-message)]))))) diff --git a/src/status_im/chats_list/styles.cljs b/src/status_im/chats_list/styles.cljs index a63b77e2e31..3524c7d69be 100644 --- a/src/status_im/chats_list/styles.cljs +++ b/src/status_im/chats_list/styles.cljs @@ -86,12 +86,14 @@ :fontSize 12 :color text2-color}) -(def last-message-text +(def last-message-container {:margin-top 5 - :margin-right 40 - :color text1-color - :fontSize 14 - :lineHeight 20}) + :margin-right 40}) + +(def last-message-text + {:color text1-color + :fontSize 14 + :lineHeight 20}) (def last-message-text-no-messages (merge last-message-text diff --git a/src/status_im/chats_list/views/inner_item.cljs b/src/status_im/chats_list/views/inner_item.cljs index 545f3893f9f..ac564fdd0fc 100644 --- a/src/status_im/chats_list/views/inner_item.cljs +++ b/src/status_im/chats_list/views/inner_item.cljs @@ -12,40 +12,49 @@ [status-im.utils.gfycat.core :refer [generate-gfy]] [status-im.constants :refer [console-chat-id content-type-command - content-type-command-request] :as c] - [taoensso.timbre :as log])) + content-type-wallet-command + content-type-command-request]] + [taoensso.timbre :as log] + [reagent.core :as r])) -(defmulti message-content (fn [{:keys [content-type]}] content-type)) +(defn message-content-text [chat-id] + (let [message (subscribe [:get-last-message chat-id]) + preview (subscribe [:get-last-message-short-preview chat-id])] + (r/create-class + {:component-will-mount + (fn [] + (when (and (get-in @message [:content :command]) + (not @preview)) + (dispatch [:request-command-preview @message :short-preview]))) -(defn command-content - [{{:keys [command content-command params]} :content}] - (let [kw (keyword (str "t/command-text-" (name (or content-command command))))] - (label kw params))) + :reagent-render + (fn [_] + [view] + (let [{:keys [content] :as message} @message + preview @preview] + [view st/last-message-container + (cond -(defmethod message-content content-type-command - [message] - (command-content message)) + (not message) + [text {:style st/last-message-text-no-messages} + (label :t/no-messages)] -(defmethod message-content c/content-type-wallet-command - [message] - (command-content message)) + (str/blank? content) + [text {:style st/last-message-text-no-messages} + ""] -(defmethod message-content content-type-command-request - [message] - (command-content message)) + (:content content) + [text {:style st/last-message-text + :number-of-lines 2} + (:content content)] -(defmethod message-content :default - [{:keys [content]}] - content) + (:command content) + preview -(defn message-content-text [message] - (let [content (message-content message)] - (if (str/blank? content) - [text {:style st/last-message-text-no-messages} - (label :t/no-messages)] - [text {:style st/last-message-text - :number-of-lines 2} - content]))) + :else + [text {:style st/last-message-text + :number-of-lines 2} + content])]))}))) (defview message-status [{:keys [chat-id contacts]} {:keys [message-id message-status user-statuses message-type outgoing] :as msg}] @@ -76,13 +85,12 @@ :font :medium} unviewed-messages]])) -(defn chat-list-item-inner-view [{:keys [chat-id name color last-message +(defn chat-list-item-inner-view [{:keys [chat-id name color online group-chat contacts public?] - :as chat}] - (let [last-message (or (first (sort-by :clock-value > (:messages chat))) - last-message) - name (or (get-contact-translated chat-id :name name) - (generate-gfy)) + :as chat}] + (let [last-message (subscribe [:get-last-message chat-id]) + name (or (get-contact-translated chat-id :name name) + (generate-gfy)) private-group? (and group-chat (not public?)) public-group? (and group-chat public?)] [view st/chat-container @@ -107,10 +115,10 @@ #_(when private-group? [text {:style st/memebers-text} (label-pluralize (inc (count contacts)) :t/members)])] - [message-content-text last-message]] + [message-content-text chat-id]] [view - (when last-message + (when @last-message [view st/status-container - [message-status chat last-message] - [message-timestamp last-message]]) + [message-status chat @last-message] + [message-timestamp @last-message]]) [unviewed-indicator chat-id]]])) diff --git a/src/status_im/translations/af.cljs b/src/status_im/translations/af.cljs index 497333133d1..a00c4f2bde7 100644 --- a/src/status_im/translations/af.cljs +++ b/src/status_im/translations/af.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH aan {{chat-name}}" :chat-send-eth-from "{{amount}} ETH van {{chat-name}}" - :command-text-location "Ligging {{address}}" - :command-text-browse "Webblaaier-blad: {{webpage}}" - :command-text-send "Transaksie: {{amount}} ETH" - :command-text-help "Help" ;new-group :group-chat-name "Bynaam" diff --git a/src/status_im/translations/ar.cljs b/src/status_im/translations/ar.cljs index 1f571a7f4e7..ff23127d970 100644 --- a/src/status_im/translations/ar.cljs +++ b/src/status_im/translations/ar.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH إلى {{chat-name}}" :chat-send-eth-from "{{amount}} ETH من {{chat-name}}" - :command-text-location "الموقع {{address}}" - :command-text-browse "تصفح صفحة الويب {{webpage}}" - :command-text-send "المعاملة: {{amount}} ETH" - :command-text-help "المساعدة" ;new-group :group-chat-name "اسم الدردشة" diff --git a/src/status_im/translations/de.cljs b/src/status_im/translations/de.cljs index 671e7f021e1..a564ceaf09f 100644 --- a/src/status_im/translations/de.cljs +++ b/src/status_im/translations/de.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH an {{chat-name}}" :chat-send-eth-from "{{amount}} ETH von {{chat-name}}" - :command-text-location "Position: {{address}}" - :command-text-browse "Auf Webseite: {{webpage}}" - :command-text-send "Transaktion: {{amount}} ETH" - :command-text-help "Hilfe" ;new-group :group-chat-name "Chatname" diff --git a/src/status_im/translations/de_ch.cljs b/src/status_im/translations/de_ch.cljs index a9a74d2f085..583d0e4669d 100644 --- a/src/status_im/translations/de_ch.cljs +++ b/src/status_im/translations/de_ch.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH zu {{chat-name}}" :chat-send-eth-from "{{amount}} ETH von {{chat-name}}" - :command-text-location "Standort: {{address}}" - :command-text-browse "Durchsuchen der Website: {{webpage}}" - :command-text-send "Transaktion: {{amount}} ETH" - :command-text-help "Hilfe" ;new-group :group-chat-name "Chat Name" diff --git a/src/status_im/translations/en.cljs b/src/status_im/translations/en.cljs index 97e9400ba56..ec2715a5df9 100644 --- a/src/status_im/translations/en.cljs +++ b/src/status_im/translations/en.cljs @@ -178,12 +178,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH to {{chat-name}}" :chat-send-eth-from "{{amount}} ETH from {{chat-name}}" - :command-text-location "Location: {{address}}" - :command-text-browse "Browsing webpage: {{webpage}}" - :command-text-send "Transaction: {{amount}} ETH" - :command-text-help "Help" - :command-text-faucet "Faucet: {{url}}" - :command-text-request "Request: {{amount}} ETH" ;new-group :group-chat-name "Chat name" diff --git a/src/status_im/translations/es.cljs b/src/status_im/translations/es.cljs index a57f7637d05..a9413c88217 100644 --- a/src/status_im/translations/es.cljs +++ b/src/status_im/translations/es.cljs @@ -153,10 +153,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH a {{chat-name}}" :chat-send-eth-from "{{amount}} ETH de{{chat-name}}" - :command-text-location "Ubicación: {{address}}" - :command-text-browse "Navegación en la página web: {{webpage}}" - :command-text-send "Transacción: {{amount}} ETH" - :command-text-help "Ayuda" ;new-group :group-chat-name "Nombre del chat" diff --git a/src/status_im/translations/es_ar.cljs b/src/status_im/translations/es_ar.cljs index 1e197e93510..ce585af9468 100644 --- a/src/status_im/translations/es_ar.cljs +++ b/src/status_im/translations/es_ar.cljs @@ -153,10 +153,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH a {{chat-name}}" :chat-send-eth-from "{{amount}} ETH de {{chat-name}}" - :command-text-location "Ubicación: {{address}}" - :command-text-browse "Navegando la página web: {{webpage}}" - :command-text-send "Transacción: {{amount}} ETH" - :command-text-help "Ayuda" ;new-group :group-chat-name "Nombre del chat" diff --git a/src/status_im/translations/fr.cljs b/src/status_im/translations/fr.cljs index aaf97fff1c0..dde15500147 100644 --- a/src/status_im/translations/fr.cljs +++ b/src/status_im/translations/fr.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH à {{chat-name}}" :chat-send-eth-from "{{amount}} ETH de {{chat-name}}" - :command-text-location "Emplacement : {{address}}" - :command-text-browse "Page de navigation : {{webpage}}" - :command-text-send "Transaction : {{amount}} ETH" - :command-text-help "Aide" ;new-group :group-chat-name "Pseudo" diff --git a/src/status_im/translations/fr_ch.cljs b/src/status_im/translations/fr_ch.cljs index 13e7914dfe0..dcf3922ac19 100644 --- a/src/status_im/translations/fr_ch.cljs +++ b/src/status_im/translations/fr_ch.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH pour {{chat-name}}" :chat-send-eth-from "{{amount}} ETH de {{chat-name}}" - :command-text-location "Emplacement: {{address}}" - :command-text-browse "Site web de navigation: {{webpage}}" - :command-text-send "Transaction: {{amount}} ETH" - :command-text-help "Aide" ;new-group :group-chat-name "Nom du chat" diff --git a/src/status_im/translations/hi.cljs b/src/status_im/translations/hi.cljs index 45d0cd9d864..8e35ec83747 100644 --- a/src/status_im/translations/hi.cljs +++ b/src/status_im/translations/hi.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} {{chat-name}} को ETH" :chat-send-eth-from "{{amount}} {{chat-name}} से ETH" - :command-text-location "स्थान: {{address}}" - :command-text-browse "वेबपेज ब्राउजिंग: {{webpage}}" - :command-text-send "लेनदेन: {{amount}} ETH" - :command-text-help "मदद करें" ;new-group :group-chat-name "चैट नाम" diff --git a/src/status_im/translations/hu.cljs b/src/status_im/translations/hu.cljs index 62d3d5ca53f..d8b624d03a7 100644 --- a/src/status_im/translations/hu.cljs +++ b/src/status_im/translations/hu.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH ide {{chat-name}}" :chat-send-eth-from "{{amount}} ETH innen {{chat-name}}" - :command-text-location "Helyszín: {{address}}" - :command-text-browse "Böngészési weboldal: {{webpage}}" - :command-text-send "Tranzakció: {{amount}} ETH" - :command-text-help "Segítség" ;new-group :group-chat-name "Csevegés neve" diff --git a/src/status_im/translations/it.cljs b/src/status_im/translations/it.cljs index a496c15dc7f..7db1e481242 100644 --- a/src/status_im/translations/it.cljs +++ b/src/status_im/translations/it.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH per {{chat-name}}" :chat-send-eth-from "{{amount}} ETH da {{chat-name}}" - :command-text-location "Posizione: {{address}}" - :command-text-browse "Naviga la pagina web: {{webpage}}" - :command-text-send "Transazione: {{amount}} ETH" - :command-text-help "Aiuto" ;new-group :group-chat-name "Nome chat" diff --git a/src/status_im/translations/it_ch.cljs b/src/status_im/translations/it_ch.cljs index fe90f0c4bef..92e40e390f8 100644 --- a/src/status_im/translations/it_ch.cljs +++ b/src/status_im/translations/it_ch.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH a {{chat-name}}" :chat-send-eth-from "{{amount}} ETH da {{chat-name}}" - :command-text-location "Posizione: {{address}}" - :command-text-browse "Pagina web: {{webpage}}" - :command-text-send "Transazione: {{amount}} ETH" - :command-text-help "Aiuto" ;new-group :group-chat-name "Nome conversazione" diff --git a/src/status_im/translations/ja.cljs b/src/status_im/translations/ja.cljs index 0c55053afb7..45440433c7b 100644 --- a/src/status_im/translations/ja.cljs +++ b/src/status_im/translations/ja.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETHを{{chat-name}}に" :chat-send-eth-from "{{amount}} ETHを{{chat-name}}から" - :command-text-location "位置: {{address}}" - :command-text-browse "ウェブページ閲覧: {{webpage}}" - :command-text-send "トランザクション: {{amount}} ETH" - :command-text-help "ヘルプ" ;new-group :group-chat-name "チャット名" diff --git a/src/status_im/translations/ko.cljs b/src/status_im/translations/ko.cljs index c32e7359c71..b8e46b6cd3e 100644 --- a/src/status_im/translations/ko.cljs +++ b/src/status_im/translations/ko.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH 송금인: {{chat-name}}" :chat-send-eth-from "{{amount}} ETH 수금인: {{chat-name}}" - :command-text-location "위치: {{address}}" - :command-text-browse "열람중인 웹페이지: {{webpage}}" - :command-text-send "거래: {{amount}} ETH" - :command-text-help "도움말" ;new-group :group-chat-name "채팅 이름" diff --git a/src/status_im/translations/nl.cljs b/src/status_im/translations/nl.cljs index ce5bf20061f..18591fc1a79 100644 --- a/src/status_im/translations/nl.cljs +++ b/src/status_im/translations/nl.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH naar {{chat-name}}" :chat-send-eth-from "{{amount}} ETH van {{chat-name}}" - :command-text-location "Locatie: {{address}}" - :command-text-browse "Browsen op internetpagina: {{webpage}}" - :command-text-send "Transactie: {{amount}} ETH" - :command-text-help "Help" ;new-group :group-chat-name "Chatnaam" diff --git a/src/status_im/translations/pl.cljs b/src/status_im/translations/pl.cljs index cd175f28f42..4f15910ceca 100644 --- a/src/status_im/translations/pl.cljs +++ b/src/status_im/translations/pl.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH do {{chat-name}}" :chat-send-eth-from "{{amount}} ETH od {{chat-name}}" - :command-text-location "Lokalizacja: {{address}}" - :command-text-browse "Przeglądana strona: {{webpage}}" - :command-text-send "Transakcja: {{amount}} ETH" - :command-text-help "Pomoc" ;new-group :group-chat-name "Nazwa czatu" diff --git a/src/status_im/translations/pt_br.cljs b/src/status_im/translations/pt_br.cljs index f85a272ae4d..982fed31878 100644 --- a/src/status_im/translations/pt_br.cljs +++ b/src/status_im/translations/pt_br.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH para {{chat-name}}" :chat-send-eth-from "{{amount}} ETH de {{chat-name}}" - :command-text-location "Localização: {{address}}" - :command-text-browse "Página de navegação: {{webpage}}" - :command-text-send "Transação: {{amount}} ETH" - :command-text-help "Ajuda" ;new-group :group-chat-name "Nome do bate-papo" diff --git a/src/status_im/translations/pt_pt.cljs b/src/status_im/translations/pt_pt.cljs index 3adc760a2db..0cc1b674804 100644 --- a/src/status_im/translations/pt_pt.cljs +++ b/src/status_im/translations/pt_pt.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH para {{chat-name}}" :chat-send-eth-from "{{amount}} ETH de {{chat-name}}" - :command-text-location "Localização: {{address}}" - :command-text-browse "Página Web de Navegação: {{webpage}}" - :command-text-send "Transação: {{amount}} ETH" - :command-text-help "Ajuda" ;new-group :group-chat-name "Nome no chat" diff --git a/src/status_im/translations/ro.cljs b/src/status_im/translations/ro.cljs index f8b6526a620..1c5bd9a6976 100644 --- a/src/status_im/translations/ro.cljs +++ b/src/status_im/translations/ro.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH pentru {{chat-name}}" :chat-send-eth-from "{{amount}} ETH de la {{chat-name}}" - :command-text-location "Locație: {{address}}" - :command-text-browse "Se răsfoiește pagina web: {{webpage}}" - :command-text-send "Tranzacție: {{amount}} ETH" - :command-text-help "Ajutor" ;new-group :group-chat-name "Nume chat" diff --git a/src/status_im/translations/ru.cljs b/src/status_im/translations/ru.cljs index 0804f963477..a2239510e3d 100644 --- a/src/status_im/translations/ru.cljs +++ b/src/status_im/translations/ru.cljs @@ -156,10 +156,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH в адрес {{chat-name}}" :chat-send-eth-from "{{amount}} ETH от {{chat-name}}" - :command-text-location "Место {{address}}" - :command-text-browse "Просматривается веб-страница {{webpage}}" - :command-text-send "Транзакция {{amount}} ETH" - :command-text-help "Помощь" ;new-group :group-chat-name "Имя чата" diff --git a/src/status_im/translations/sl.cljs b/src/status_im/translations/sl.cljs index 5fdfadb7b16..396a34227af 100644 --- a/src/status_im/translations/sl.cljs +++ b/src/status_im/translations/sl.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH osebi {{chat-name}}" :chat-send-eth-from "{{amount}} ETH od osebe {{chat-name}}" - :command-text-location "Lokacija: {{address}}" - :command-text-browse "Brskanje po spletni strani: {{webpage}}" - :command-text-send "Transakcija: {{amount}} ETH" - :command-text-help "Pomoč" ;new-group :group-chat-name "Ime za klepet" diff --git a/src/status_im/translations/sv.cljs b/src/status_im/translations/sv.cljs index 0c7e161aa4d..1f2cab6e351 100644 --- a/src/status_im/translations/sv.cljs +++ b/src/status_im/translations/sv.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH till {{chat-name}}" :chat-send-eth-from "{{amount}} ETH från {{chat-name}}" - :command-text-location "Plats: {{address}}" - :command-text-browse "Läser webbsidan: {{webpage}}" - :command-text-send "Transaktion: {{amount}} ETH" - :command-text-help "Hjälp" ;new-group :group-chat-name "Chattnamn" diff --git a/src/status_im/translations/sw.cljs b/src/status_im/translations/sw.cljs index 30b0948b410..b8aaf0f4c91 100644 --- a/src/status_im/translations/sw.cljs +++ b/src/status_im/translations/sw.cljs @@ -153,10 +153,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH kwa {{chat-name}}" :chat-send-eth-from "{{amount}} ETH kutoka {{chat-name}}" - :command-text-location "Eneo: {{address}}" - :command-text-browse "Ukurasa wa tovuti wa kutafuta: {{webpage}}" - :command-text-send "Mashirikiano: {{amount}} ETH" - :command-text-help "Msaada" ;new-group :group-chat-name "Jina la gumzo" diff --git a/src/status_im/translations/th.cljs b/src/status_im/translations/th.cljs index 2213d7c906d..70c83bd0e51 100644 --- a/src/status_im/translations/th.cljs +++ b/src/status_im/translations/th.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH ไปยัง {{chat-name}}" :chat-send-eth-from "{{amount}} ETH จาก {{chat-name}}" - :command-text-location "ตำแหน่ง: {{address}}" - :command-text-browse "กำลังท่องชมหน้าเว็บ: {{webpage}}" - :command-text-send "ธุรกรรม: {{amount}} ETH" - :command-text-help "ช่วยเหลือ" ;new-group :group-chat-name "ชื่อแชท" diff --git a/src/status_im/translations/tr.cljs b/src/status_im/translations/tr.cljs index eb4f1df693c..1edaf0888d8 100644 --- a/src/status_im/translations/tr.cljs +++ b/src/status_im/translations/tr.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH alıcı: {{chat-name}}" :chat-send-eth-from "{{amount}} ETH gönderen: {{chat-name}}" - :command-text-location "Konum: {{address}}" - :command-text-browse "Web sayfası: {{webpage}}" - :command-text-send "İşlem: {{amount}} ETH" - :command-text-help "Yardım" ;new-group :group-chat-name "Sohbet adı" diff --git a/src/status_im/translations/uk.cljs b/src/status_im/translations/uk.cljs index 37ccf9031bc..de0a1400f33 100644 --- a/src/status_im/translations/uk.cljs +++ b/src/status_im/translations/uk.cljs @@ -153,10 +153,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH для {{chat-name}}" :chat-send-eth-from "{{amount}} ETH від {{chat-name}}" - :command-text-location "Місцезнаходження: {{address}}" - :command-text-browse "Перегляд веб-сторінки: {{webpage}}" - :command-text-send "Транзакція: {{amount}} ETH" - :command-text-help "Допомога" ;new-group :group-chat-name "Назва розмови" diff --git a/src/status_im/translations/ur.cljs b/src/status_im/translations/ur.cljs index 0fd5aa8bd80..6f381347a18 100644 --- a/src/status_im/translations/ur.cljs +++ b/src/status_im/translations/ur.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH کرنے {{chat-name}}" :chat-send-eth-from "{{amount}} ETH سے {{chat-name}}" - :command-text-location "مقام: {{address}}" - :command-text-browse "ویب پیج براؤز کریں: {{webpage}}" - :command-text-send "بیوپار: {{amount}} ETH" - :command-text-help "مدد" ;new-group :group-chat-name "چیٹ کا نام" diff --git a/src/status_im/translations/vi.cljs b/src/status_im/translations/vi.cljs index 4131fcbde00..0fab5c8ea0d 100644 --- a/src/status_im/translations/vi.cljs +++ b/src/status_im/translations/vi.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH đến {{chat-name}}" :chat-send-eth-from "{{amount}} ETH từ {{chat-name}}" - :command-text-location "Vị trí: {{address}}" - :command-text-browse "Trình duyệt trang web: {{webpage}}" - :command-text-send "Giao dịch: {{amount}} ETH" - :command-text-help "Giúp đỡ" ;new-group :group-chat-name "Tên trò chuyện" diff --git a/src/status_im/translations/zh_hans.cljs b/src/status_im/translations/zh_hans.cljs index 90db8c64ab9..ecfd14b3e38 100644 --- a/src/status_im/translations/zh_hans.cljs +++ b/src/status_im/translations/zh_hans.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "给{{chat-name}}的{{amount}} ETH" :chat-send-eth-from "来自{{chat-name}}的{{amount}} ETH" - :command-text-location "位置: {{address}}" - :command-text-browse "浏览网页: {{webpage}}" - :command-text-send "交易: {{amount}} ETH" - :command-text-help "帮助" ;new-group :group-chat-name "聊天名称" diff --git a/src/status_im/translations/zh_hant.cljs b/src/status_im/translations/zh_hant.cljs index bb9b5a6a2e7..5c9bf6d2bf7 100644 --- a/src/status_im/translations/zh_hant.cljs +++ b/src/status_im/translations/zh_hant.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH 給 {{chat-name}}" :chat-send-eth-from "{{amount}} ETH 來自 {{chat-name}}" - :command-text-location "位置: {{address}}" - :command-text-browse "瀏覽網頁: {{webpage}}" - :command-text-send "交易: {{amount}} ETH" - :command-text-help "幫助" ;new-group :group-chat-name "群組名稱" diff --git a/src/status_im/translations/zh_wuu.cljs b/src/status_im/translations/zh_wuu.cljs index 65f86d90549..b39de5a3c95 100644 --- a/src/status_im/translations/zh_wuu.cljs +++ b/src/status_im/translations/zh_wuu.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH至 {{chat-name}}" :chat-send-eth-from "{{amount}} ETH来自 {{chat-name}}" - :command-text-location "地址: {{address}}" - :command-text-browse "浏览网页: {{webpage}}" - :command-text-send "交易: {{amount}} ETH" - :command-text-help "帮助" ;new-group :group-chat-name "聊天名称" diff --git a/src/status_im/translations/zh_yue.cljs b/src/status_im/translations/zh_yue.cljs index 8c959d25089..7af92d567d3 100644 --- a/src/status_im/translations/zh_yue.cljs +++ b/src/status_im/translations/zh_yue.cljs @@ -148,10 +148,6 @@ :chat-send-eth "{{amount}} ETH" :chat-send-eth-to "{{amount}} ETH 予 {{chat-name}}" :chat-send-eth-from "{{amount}} ETH 來自 {{chat-name}}" - :command-text-location "地點: {{address}}" - :command-text-browse "瀏覽網頁: {{webpage}}" - :command-text-send "交易: {{amount}} ETH" - :command-text-help "幫助" ;new-group :group-chat-name "聊天用戶名稱"