From dadff16d4f0128cba6a33892bb86e6f279881080 Mon Sep 17 00:00:00 2001 From: Mohsen Date: Wed, 9 Oct 2024 12:17:49 +0300 Subject: [PATCH] [#21396] chore: rename crypto buy phrases --- src/status_im/contexts/wallet/send/input_amount/view.cljs | 2 +- src/status_im/contexts/wallet/sheets/buy_token/view.cljs | 2 +- src/status_im/contexts/wallet/swap/setup_swap/view.cljs | 8 +++----- .../wallet/wallet_connect/modals/common/footer/view.cljs | 2 +- translations/en.json | 5 +++-- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/status_im/contexts/wallet/send/input_amount/view.cljs b/src/status_im/contexts/wallet/send/input_amount/view.cljs index b62a8151cef..600d19f70a4 100644 --- a/src/status_im/contexts/wallet/send/input_amount/view.cljs +++ b/src/status_im/contexts/wallet/send/input_amount/view.cljs @@ -121,7 +121,7 @@ [quo/alert-banner {:action? true :text (i18n/label :t/not-enough-assets-to-pay-gas-fees) - :button-text (i18n/label :t/buy-eth) + :button-text (i18n/label :t/add-eth) :on-button-press #(rf/dispatch [:show-bottom-sheet {:content buy-token/view}])}]) diff --git a/src/status_im/contexts/wallet/sheets/buy_token/view.cljs b/src/status_im/contexts/wallet/sheets/buy_token/view.cljs index 960fe154b91..726240d3108 100644 --- a/src/status_im/contexts/wallet/sheets/buy_token/view.cljs +++ b/src/status_im/contexts/wallet/sheets/buy_token/view.cljs @@ -55,7 +55,7 @@ #(set-min-height (oops/oget % :nativeEvent :layout :height)))] [:<> - [quo/drawer-top {:title (or title (i18n/label :t/buy-assets))}] + [quo/drawer-top {:title (or title (i18n/label :t/ways-to-buy-assets))}] [quo/segmented-control {:size 32 :container-style style/tabs diff --git a/src/status_im/contexts/wallet/swap/setup_swap/view.cljs b/src/status_im/contexts/wallet/swap/setup_swap/view.cljs index 0eef5713892..af5305094fd 100644 --- a/src/status_im/contexts/wallet/swap/setup_swap/view.cljs +++ b/src/status_im/contexts/wallet/swap/setup_swap/view.cljs @@ -257,17 +257,15 @@ (merge {:action? true :on-button-press #(rf/dispatch [:show-bottom-sheet {:content buy-token/view}]) - :button-text (i18n/label :t/buy-assets)}) + :button-text (i18n/label :t/add-assets)}) (= error-response-code constants/router-error-code-not-enough-native-balance) (merge {:action? true :on-button-press #(rf/dispatch [:show-bottom-sheet {:content (fn [] - [buy-token/view - {:title (i18n/label - :t/buy-ethereum)}])}]) - :button-text (i18n/label :t/buy-eth)}))] + [buy-token/view])}]) + :button-text (i18n/label :t/add-eth)}))] (when (or pay-input-error? error-response) [quo/alert-banner props]))) diff --git a/src/status_im/contexts/wallet/wallet_connect/modals/common/footer/view.cljs b/src/status_im/contexts/wallet/wallet_connect/modals/common/footer/view.cljs index 1079c6336a8..b14d8b102fb 100644 --- a/src/status_im/contexts/wallet/wallet_connect/modals/common/footer/view.cljs +++ b/src/status_im/contexts/wallet/wallet_connect/modals/common/footer/view.cljs @@ -31,7 +31,7 @@ :not-enough-assets :t/not-enough-assets-for-transaction))) - :button-text (i18n/label :t/buy-eth) + :button-text (i18n/label :t/add-eth) :on-button-press #(rf/dispatch [:show-bottom-sheet {:content buy-token/view}])}]) [rn/view {:style style/content-container} diff --git a/translations/en.json b/translations/en.json index 8ea1f62657c..6379f55d3a5 100644 --- a/translations/en.json +++ b/translations/en.json @@ -51,9 +51,11 @@ "add-address-to-watch": "Add address to watch", "add-address-to-watch-description": "Watch a public address or ENS name", "add-an-account": "Add an account", + "add-assets": "Add assets", "add-bootnode": "Add bootnode", "add-contact": "Add contact", "add-custom-token": "Add custom token", + "add-eth": "Add ETH", "add-favourite": "Add favourite", "add-mailserver": "Add Status node", "add-me-to-your-contacts": "Please add me to your contacts", @@ -266,13 +268,11 @@ "bug-report-too-short-description": "Description is too short", "build-yourself": "To use the app without these Terms of Use, you can build your own version", "buy": "Buy", - "buy-assets": "Buy assets", "buy-crypto": "Buy crypto", "buy-crypto-choose-a-service": "Choose a service you'd like to use to buy crypto", "buy-crypto-description": "Find a dapp to buy crypto now", "buy-crypto-leaving": "You are leaving Status and entering a third party website to complete your purchase", "buy-crypto-title": "Looks like your wallet is empty", - "buy-eth": "Buy ETH", "buy-ethereum": "Buy Ethereum", "buy-keycard": "Buy Keycard", "by-continuing-you-accept": "By continuing you accept our ", @@ -2771,6 +2771,7 @@ "watch-only": "Watch-only", "watched-account-removed": "Watched address has been removed", "watched-address": "Watched address", + "ways-to-buy-assets": "Ways to buy assets", "wc-brand-guide": "Guidance on using branding such as trademarks and logos", "wc-disclaimer": "Disclaimers (including third party providers), warranties, and legal releases", "wc-dispute": "Dispute resolution provisions",