From 8fcdea7b560fec2afde5f76c827664f67a608af5 Mon Sep 17 00:00:00 2001 From: Niranjana Binoy <43930900+NiranjanaBinoy@users.noreply.github.com> Date: Mon, 19 Sep 2022 16:23:21 -0400 Subject: [PATCH] updating the copy and title on token dettection toggle in advanced settings and notification in import tokens (#15880) --- app/_locales/de/messages.json | 6 ------ app/_locales/el/messages.json | 6 ------ app/_locales/en/messages.json | 18 +++++++++--------- app/_locales/es/messages.json | 6 ------ app/_locales/fr/messages.json | 6 ------ app/_locales/hi/messages.json | 6 ------ app/_locales/id/messages.json | 6 ------ app/_locales/ja/messages.json | 6 ------ app/_locales/ko/messages.json | 6 ------ app/_locales/pt/messages.json | 6 ------ app/_locales/ru/messages.json | 6 ------ app/_locales/tl/messages.json | 6 ------ app/_locales/tr/messages.json | 6 ------ app/_locales/vi/messages.json | 6 ------ ui/helpers/constants/settings.js | 4 ++-- ui/helpers/utils/settings-search.test.js | 8 ++++---- .../import-token/import-token.component.js | 2 +- .../advanced-tab/advanced-tab.component.js | 4 ++-- 18 files changed, 18 insertions(+), 96 deletions(-) diff --git a/app/_locales/de/messages.json b/app/_locales/de/messages.json index 7bd41e844..903d92a08 100644 --- a/app/_locales/de/messages.json +++ b/app/_locales/de/messages.json @@ -3658,12 +3658,6 @@ "tokenDetails": { "message": "Token-Details" }, - "tokenDetection": { - "message": "Token-Erkennung" - }, - "tokenDetectionAlertMessage": { - "message": "Die Token-Erkennung ist derzeit für $1 verfügbar. $2" - }, "tokenId": { "message": "Token-ID" }, diff --git a/app/_locales/el/messages.json b/app/_locales/el/messages.json index d6545839a..73f6abd7b 100644 --- a/app/_locales/el/messages.json +++ b/app/_locales/el/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "Λεπτομέρειες token" }, - "tokenDetection": { - "message": "Εντοπισμός token" - }, - "tokenDetectionAlertMessage": { - "message": "Ο εντοπισμός token είναι επί του παρόντος διαθέσιμος στο $1. $2" - }, "tokenId": { "message": "Αναγνωριστικό token" }, diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index be3ed5a70..b79222921 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -1235,6 +1235,15 @@ "message": "The RPC URL you have entered returned a different chain ID ($1). Please update the Chain ID to match the RPC URL of the network you are trying to add.", "description": "$1 is the return value of eth_chainId from an RPC endpoint" }, + "enhancedTokenDetection": { + "message": "Enhanced token detection" + }, + "enhancedTokenDetectionAlertMessage": { + "message": "Enhanced token detection is currently available on $1. $2" + }, + "enhancedTokenDetectionDescription": { + "message": "ConsenSys' token API aggregates a list of tokens from various third party token lists. When turned on, tokens will be automatically detected, and searchable, on Ethereum mainnet, Binance, Polygon and Avalanche. When turned off, automatic detection and search can only be done on Ethereum mainnet." + }, "ensIllegalCharacter": { "message": "Illegal character for ENS." }, @@ -3948,15 +3957,6 @@ "tokenDetails": { "message": "Token details" }, - "tokenDetection": { - "message": "Token detection" - }, - "tokenDetectionAlertMessage": { - "message": "Token detection is currently available on $1. $2" - }, - "tokenDetectionDescription": { - "message": "ConsenSys' token API aggregates a list of tokens from various third party token lists. When turned on, tokens will be automatically detected, and searchable, on Ethereum mainnet, Binance, Polygon and Avalanche. When turned off, you will still be able to search for tokens on Ethereum mainnet using MetaMask's legacy token list." - }, "tokenFoundTitle": { "message": "1 new token found" }, diff --git a/app/_locales/es/messages.json b/app/_locales/es/messages.json index ca5d01a6b..0516a55f5 100644 --- a/app/_locales/es/messages.json +++ b/app/_locales/es/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "Detalles del token" }, - "tokenDetection": { - "message": "Detección del token" - }, - "tokenDetectionAlertMessage": { - "message": "La detección de tókens está actualmente disponible en $1. $2" - }, "tokenId": { "message": "Identificador de Token" }, diff --git a/app/_locales/fr/messages.json b/app/_locales/fr/messages.json index 4f099a565..5844ab461 100644 --- a/app/_locales/fr/messages.json +++ b/app/_locales/fr/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "Détails du token" }, - "tokenDetection": { - "message": "Détection du token" - }, - "tokenDetectionAlertMessage": { - "message": "La détection du token est actuellement disponible sur $1. $2" - }, "tokenId": { "message": "ID de token" }, diff --git a/app/_locales/hi/messages.json b/app/_locales/hi/messages.json index 6c6ac60e4..7124213a5 100644 --- a/app/_locales/hi/messages.json +++ b/app/_locales/hi/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "टोकन विवरण" }, - "tokenDetection": { - "message": "टोकन डिटेक्शन" - }, - "tokenDetectionAlertMessage": { - "message": "फिलहाल टोकन डिटेक्शन $1 पर उपलब्ध है। $2" - }, "tokenId": { "message": "टोकन आइडी" }, diff --git a/app/_locales/id/messages.json b/app/_locales/id/messages.json index 49a4867ad..9c4eafd55 100644 --- a/app/_locales/id/messages.json +++ b/app/_locales/id/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "Detail token" }, - "tokenDetection": { - "message": "Deteksi token" - }, - "tokenDetectionAlertMessage": { - "message": "Saat ini deteksi token tersedia di $1. $2" - }, "tokenId": { "message": "ID token" }, diff --git a/app/_locales/ja/messages.json b/app/_locales/ja/messages.json index 3042bad67..3bc7420c8 100644 --- a/app/_locales/ja/messages.json +++ b/app/_locales/ja/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "トークンの詳細" }, - "tokenDetection": { - "message": "トークン検出" - }, - "tokenDetectionAlertMessage": { - "message": "トークン検出は現在 $1 で利用可能です。$2" - }, "tokenId": { "message": "トークン ID" }, diff --git a/app/_locales/ko/messages.json b/app/_locales/ko/messages.json index b9cd8aca3..cabef3736 100644 --- a/app/_locales/ko/messages.json +++ b/app/_locales/ko/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "토큰 상세 정보" }, - "tokenDetection": { - "message": "토큰 감지" - }, - "tokenDetectionAlertMessage": { - "message": "토큰 감지 기능은 현재 $1. $2에서 사용할 수 있습니다." - }, "tokenId": { "message": "토큰 ID" }, diff --git a/app/_locales/pt/messages.json b/app/_locales/pt/messages.json index dc235947c..81a04a144 100644 --- a/app/_locales/pt/messages.json +++ b/app/_locales/pt/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "Dados do token" }, - "tokenDetection": { - "message": "Detecção de token" - }, - "tokenDetectionAlertMessage": { - "message": "A detecção de tokens está atualmente disponível em $1. $2" - }, "tokenId": { "message": "ID do token" }, diff --git a/app/_locales/ru/messages.json b/app/_locales/ru/messages.json index 998e2b792..7066fa236 100644 --- a/app/_locales/ru/messages.json +++ b/app/_locales/ru/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "Сведения о токене" }, - "tokenDetection": { - "message": "Обнаружение токена" - }, - "tokenDetectionAlertMessage": { - "message": "Обнаружение токена в настоящее время доступно на $1. $2" - }, "tokenId": { "message": "Ид. токена" }, diff --git a/app/_locales/tl/messages.json b/app/_locales/tl/messages.json index fe2843305..bafd99635 100644 --- a/app/_locales/tl/messages.json +++ b/app/_locales/tl/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "Mga detalye ng token" }, - "tokenDetection": { - "message": "Pagtuklas sa token" - }, - "tokenDetectionAlertMessage": { - "message": "Ang pagtukoy ng token ay kasalukuyang magagamit sa $1. $2" - }, "tokenId": { "message": "Token ID" }, diff --git a/app/_locales/tr/messages.json b/app/_locales/tr/messages.json index 8d91728a2..bf08426a3 100644 --- a/app/_locales/tr/messages.json +++ b/app/_locales/tr/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "Token bilgileri" }, - "tokenDetection": { - "message": "Token algılama" - }, - "tokenDetectionAlertMessage": { - "message": "Token algılama şu anda $1 üzerinden kullanılabilir. $2" - }, "tokenId": { "message": "Token Kimliği" }, diff --git a/app/_locales/vi/messages.json b/app/_locales/vi/messages.json index f7577b291..11a6f8dc9 100644 --- a/app/_locales/vi/messages.json +++ b/app/_locales/vi/messages.json @@ -3714,12 +3714,6 @@ "tokenDetails": { "message": "Chi tiết token" }, - "tokenDetection": { - "message": "Phát hiện token" - }, - "tokenDetectionAlertMessage": { - "message": "Tính năng phát hiện token hiện có sẵn trên $1. $2" - }, "tokenId": { "message": "ID Token" }, diff --git a/ui/helpers/constants/settings.js b/ui/helpers/constants/settings.js index fdd41322b..41d998814 100644 --- a/ui/helpers/constants/settings.js +++ b/ui/helpers/constants/settings.js @@ -322,8 +322,8 @@ export const SETTINGS_CONSTANTS = [ }, { tabMessage: (t) => t('advanced'), - sectionMessage: (t) => t('tokenDetection'), - descriptionMessage: (t) => t('tokenDetectionDescription'), + sectionMessage: (t) => t('enhancedTokenDetection'), + descriptionMessage: (t) => t('enhancedTokenDetectionDescription'), route: `${ADVANCED_ROUTE}#token-description`, icon: 'fas fa-sliders-h', }, diff --git a/ui/helpers/utils/settings-search.test.js b/ui/helpers/utils/settings-search.test.js index fbfc69b29..fc8a22b13 100644 --- a/ui/helpers/utils/settings-search.test.js +++ b/ui/helpers/utils/settings-search.test.js @@ -113,10 +113,10 @@ const t = (key) => { return 'Localhost 8545'; case 'experimental': return 'Experimental'; - case 'tokenDetection': - return 'Token detection'; - case 'tokenDetectionDescription': - return "ConsenSys' token API aggregates a list of tokens from various third party token lists. When turned on, tokens will be automatically detected, and searchable, on Ethereum mainnet, Binance, Polygon and Avalanche. When turned off, you will still be able to search for tokens on Ethereum mainnet using MetaMask's legacy token list."; + case 'enhancedTokenDetection': + return 'Enhanced token detection'; + case 'enhancedTokenDetectionDescription': + return "ConsenSys' token API aggregates a list of tokens from various third party token lists. When turned on, tokens will be automatically detected, and searchable, on Ethereum mainnet, Binance, Polygon and Avalanche. When turned off, automatic detection and search can only be done on Ethereum mainnet."; case 'enableEIP1559V2': return 'Enable enhanced gas fee UI'; case 'enableEIP1559V2Description': diff --git a/ui/pages/import-token/import-token.component.js b/ui/pages/import-token/import-token.component.js index 5c4a43c04..50445c903 100644 --- a/ui/pages/import-token/import-token.component.js +++ b/ui/pages/import-token/import-token.component.js @@ -581,7 +581,7 @@ class ImportToken extends Component {