From 9791c183a879b3be896da6146fafb16207170a12 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 24 Sep 2018 18:35:21 +0300 Subject: [PATCH] fix :command-sending label --- src/status_im/chat/commands/impl/transactions.cljs | 6 ++---- translations/en.json | 2 +- translations/pl.json | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/status_im/chat/commands/impl/transactions.cljs b/src/status_im/chat/commands/impl/transactions.cljs index 1b8a78c3fa..0dbefc554f 100644 --- a/src/status_im/chat/commands/impl/transactions.cljs +++ b/src/status_im/chat/commands/impl/transactions.cljs @@ -86,10 +86,8 @@ [label-key {:keys [content]}] (let [{:keys [amount asset]} (:params content)] [chat-preview/text {} - (str (i18n/label label-key) - (i18n/label-number amount) - " " - asset)])) + (i18n/label label-key {:amount (i18n/label-number amount) + :asset asset})])) (def personal-send-request-params [{:id :asset diff --git a/translations/en.json b/translations/en.json index cc68dac679..734f0a4df8 100644 --- a/translations/en.json +++ b/translations/en.json @@ -602,7 +602,7 @@ "decryption-failed-title": "We were not able to decrypt your data", "word-n": "Word #{{number}}", "deny": "Deny", - "command-sending": "Send transaction ", + "command-sending": "Send transaction {{amount}} {{asset}}", "currency-display-name-hrk": "Croatia Kuna", "currency-display-name-gbp": "British Pound", "currency-display-name-etb": "Ethiopian Birr", diff --git a/translations/pl.json b/translations/pl.json index 59e8ddf97e..e3d4005f96 100644 --- a/translations/pl.json +++ b/translations/pl.json @@ -71,7 +71,7 @@ "command-button-send": "Wyślij", "command-button-sent": "Wysłano", "command-requesting": "Prośba", - "command-sending": "Wyślij transakcję", + "command-sending": "Wyślij transakcję {{amount}} {{asset}}", "confirm": "Potwierdź", "confirmation-code": [ "str", @@ -680,4 +680,4 @@ "your-recovery-phrase": "Twoja fraza odzyskiwania", "your-recovery-phrase-description": "To jest Twoja fraza odzyskiwania. Używasz jej, aby udowodnić, że to Twój portfel. Możesz ją zobaczyć tylko raz! Zapisz ją na papierze i przechowuj w bezpiecznym miejscu. Będzie ona potrzebna, jeśli stracisz lub ponownie zainstalujesz Twój portfel.", "your-wallets": "Twoje portfele" -} \ No newline at end of file +}