Lokalise: update of translations/en.json
[#5829] chat commands translations
This commit is contained in:
parent
ccbc0baffb
commit
7c7717d101
|
@ -93,14 +93,14 @@
|
||||||
(def personal-send-request-params
|
(def personal-send-request-params
|
||||||
[{:id :asset
|
[{:id :asset
|
||||||
:type :text
|
:type :text
|
||||||
:placeholder "Currency"
|
:placeholder (i18n/label :t/send-request-currency)
|
||||||
;; Suggestion components should be structured in such way that they will just take
|
;; Suggestion components should be structured in such way that they will just take
|
||||||
;; one argument, event-creator fn used to construct event to fire whenever something
|
;; one argument, event-creator fn used to construct event to fire whenever something
|
||||||
;; is selected.
|
;; is selected.
|
||||||
:suggestions choose-asset-suggestion}
|
:suggestions choose-asset-suggestion}
|
||||||
{:id :amount
|
{:id :amount
|
||||||
:type :number
|
:type :number
|
||||||
:placeholder "Amount"}])
|
:placeholder (i18n/label :t/send-request-amount)}])
|
||||||
|
|
||||||
(defview choose-nft-token [selected-event-creator]
|
(defview choose-nft-token [selected-event-creator]
|
||||||
(letsubs [{:keys [input-params]} [:selected-chat-command]
|
(letsubs [{:keys [input-params]} [:selected-chat-command]
|
||||||
|
@ -156,12 +156,12 @@
|
||||||
(cond
|
(cond
|
||||||
|
|
||||||
(not asset-decimals)
|
(not asset-decimals)
|
||||||
{:title "Invalid Asset"
|
{:title (i18n/label :t/send-request-invalid-asset)
|
||||||
:description (str "Unknown token - " asset)}
|
:description (i18n/label :t/send-request-unknown-token {:asset asset})}
|
||||||
|
|
||||||
(not amount)
|
(not amount)
|
||||||
{:title "Amount"
|
{:title (i18n/label :t/send-request-amount)
|
||||||
:description "Amount must be specified"}
|
:description (i18n/label :t/send-request-amount-must-be-specified)}
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(let [sanitised-str (string/replace amount #"," ".")
|
(let [sanitised-str (string/replace amount #"," ".")
|
||||||
|
@ -174,12 +174,13 @@
|
||||||
(or (js/isNaN amount)
|
(or (js/isNaN amount)
|
||||||
(> (count portions) 2)
|
(> (count portions) 2)
|
||||||
(re-matches #".+(\.|,)$" amount-string))
|
(re-matches #".+(\.|,)$" amount-string))
|
||||||
{:title "Amount"
|
{:title (i18n/label :t/send-request-amount)
|
||||||
:description "Amount is not valid number"}
|
:description (i18n/label :t/send-request-amount-invalid-number)}
|
||||||
|
|
||||||
(and decimals (> decimals asset-decimals))
|
(and decimals (> decimals asset-decimals))
|
||||||
{:title "Amount"
|
{:title (i18n/label :t/send-request-amount)
|
||||||
:description (str "Max number of decimals is " asset-decimals)})))))
|
:description (i18n/label :t/send-request-amount-max-decimals
|
||||||
|
{:asset-decimals asset-decimals})})))))
|
||||||
|
|
||||||
;; `/send` command
|
;; `/send` command
|
||||||
|
|
||||||
|
@ -268,7 +269,7 @@
|
||||||
protocol/Command
|
protocol/Command
|
||||||
(id [_] "send")
|
(id [_] "send")
|
||||||
(scope [_] #{:personal-chats})
|
(scope [_] #{:personal-chats})
|
||||||
(description [_] "Send a payment")
|
(description [_] (i18n/label :t/send-command-payment))
|
||||||
(parameters [_] personal-send-request-params)
|
(parameters [_] personal-send-request-params)
|
||||||
(validate [_ parameters cofx]
|
(validate [_ parameters cofx]
|
||||||
;; Only superficial/formatting validation, "real validation" will be performed
|
;; Only superficial/formatting validation, "real validation" will be performed
|
||||||
|
@ -435,7 +436,7 @@
|
||||||
protocol/Command
|
protocol/Command
|
||||||
(id [_] "request")
|
(id [_] "request")
|
||||||
(scope [_] #{:personal-chats})
|
(scope [_] #{:personal-chats})
|
||||||
(description [_] "Send a payment")
|
(description [_] (i18n/label :t/request-command-payment))
|
||||||
(parameters [_] personal-send-request-params)
|
(parameters [_] personal-send-request-params)
|
||||||
(validate [_ parameters cofx]
|
(validate [_ parameters cofx]
|
||||||
(personal-send-request-validation parameters cofx))
|
(personal-send-request-validation parameters cofx))
|
||||||
|
|
|
@ -691,5 +691,14 @@
|
||||||
"default-dapps-fun-games": "Fun & Games",
|
"default-dapps-fun-games": "Fun & Games",
|
||||||
"default-dapps-social-networks": "Social Networks",
|
"default-dapps-social-networks": "Social Networks",
|
||||||
"default-dapps-social-utilities": "Utilities",
|
"default-dapps-social-utilities": "Utilities",
|
||||||
"default-dapps-media": "Media"
|
"default-dapps-media": "Media",
|
||||||
}
|
"send-request-currency": "Currency",
|
||||||
|
"send-request-amount": "Amount",
|
||||||
|
"send-request-invalid-asset": "Invalid Asset",
|
||||||
|
"send-request-amount-must-be-specified": "Amount must be specified",
|
||||||
|
"send-request-unknown-token": "Unknown token - {{asset}}",
|
||||||
|
"send-request-amount-invalid-number": "Amount is not a valid number",
|
||||||
|
"send-request-amount-max-decimals": "Max number of decimals is {{asset-decimals}}",
|
||||||
|
"send-command-payment": "Send a payment",
|
||||||
|
"request-command-payment": "Request a payment"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue