1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Add target object word to "View on Etherscan" links (#12100)

* Add target object word to "View on Etherscan" links
Fix for: #9476

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Fix Swap tests checking for View $1 at or View $1 on

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Linter Fixes

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Fix  ui/hooks/useTransactionDisplayData.test.js expected result should
be May 13, 2020

Update Jest snapshot for view on etherscan test

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Add description of the variables in messages.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* 1. localize all of the blockExplorerViewAction values
2. Apply this nit. https://github.com/MetaMask/metamask-extension/pull/12100#discussion_r708343532

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Fix locale value not used on GUI error lint error.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Reverted this commit, on circle ci, the date is May 12.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Add description to link block explore actions to where it's used.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Fix missing messages.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
This commit is contained in:
Akintayo A. Olusegun 2021-09-24 21:14:07 +04:00 committed by GitHub
parent 30105a19d1
commit 08dff86be0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
53 changed files with 50 additions and 405 deletions

View File

@ -1124,15 +1124,6 @@
"viewContact": { "viewContact": {
"message": "ዕውቂያን ይመልከቱ" "message": "ዕውቂያን ይመልከቱ"
}, },
"viewOnCustomBlockExplorer": {
"message": "በ $1ይመልከቱ"
},
"viewOnEtherscan": {
"message": "በ Etherscan ላይ ይመልከቱ"
},
"viewinExplorer": {
"message": "በኤክስፕሎረር ተመልከት"
},
"visitWebSite": { "visitWebSite": {
"message": "ድረ ገጻችንን ይጎብኙ" "message": "ድረ ገጻችንን ይጎብኙ"
}, },

View File

@ -1120,15 +1120,6 @@
"viewContact": { "viewContact": {
"message": "عرض جهة الاتصال" "message": "عرض جهة الاتصال"
}, },
"viewOnCustomBlockExplorer": {
"message": "عرض في $1"
},
"viewOnEtherscan": {
"message": "عرضه على Etherscan"
},
"viewinExplorer": {
"message": "عرض في متصفح Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "قم بزيارة موقعنا على الإنترنت" "message": "قم بزيارة موقعنا على الإنترنت"
}, },

View File

@ -1123,15 +1123,6 @@
"viewContact": { "viewContact": {
"message": "Преглед на контакта" "message": "Преглед на контакта"
}, },
"viewOnCustomBlockExplorer": {
"message": "Преглед на $1"
},
"viewOnEtherscan": {
"message": "Преглед на Etherscan"
},
"viewinExplorer": {
"message": "Преглед в Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Посетете нашият уеб сайт" "message": "Посетете нашият уеб сайт"
}, },

View File

@ -1127,15 +1127,6 @@
"viewContact": { "viewContact": {
"message": "পরিচিতি দেখুন" "message": "পরিচিতি দেখুন"
}, },
"viewOnCustomBlockExplorer": {
"message": "$1 এ দেখুন"
},
"viewOnEtherscan": {
"message": "Etherscan দেখুন"
},
"viewinExplorer": {
"message": "এক্সপ্লোরারে দেখুন"
},
"visitWebSite": { "visitWebSite": {
"message": "আমাদের ওয়েবসাইট দেখুন" "message": "আমাদের ওয়েবসাইট দেখুন"
}, },

View File

@ -1096,15 +1096,6 @@
"viewContact": { "viewContact": {
"message": "Veure Contacte" "message": "Veure Contacte"
}, },
"viewOnCustomBlockExplorer": {
"message": "Mostra a $1"
},
"viewOnEtherscan": {
"message": "Veure a Etherscan"
},
"viewinExplorer": {
"message": "Mostra a Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Visita el nostre lloc web" "message": "Visita el nostre lloc web"
}, },

View File

@ -1096,15 +1096,6 @@
"viewContact": { "viewContact": {
"message": "Vis kontakt" "message": "Vis kontakt"
}, },
"viewOnCustomBlockExplorer": {
"message": "Se på $1"
},
"viewOnEtherscan": {
"message": "Se på Etherscan"
},
"viewinExplorer": {
"message": "Vis i stifinder"
},
"visitWebSite": { "visitWebSite": {
"message": "Besøg vores webside" "message": "Besøg vores webside"
}, },

View File

@ -1087,15 +1087,6 @@
"viewContact": { "viewContact": {
"message": "Kontakt anzeigen" "message": "Kontakt anzeigen"
}, },
"viewOnCustomBlockExplorer": {
"message": "Für $1 ansehen"
},
"viewOnEtherscan": {
"message": "Auf Etherscan ansehen"
},
"viewinExplorer": {
"message": "Im Explorer anzeigen"
},
"visitWebSite": { "visitWebSite": {
"message": "Gehe zu unserer Webseite" "message": "Gehe zu unserer Webseite"
}, },

View File

@ -1121,15 +1121,6 @@
"viewContact": { "viewContact": {
"message": "Εμφάνιση Επαφής" "message": "Εμφάνιση Επαφής"
}, },
"viewOnCustomBlockExplorer": {
"message": "Προβολή σε $1"
},
"viewOnEtherscan": {
"message": "Προβολή στο Etherscan"
},
"viewinExplorer": {
"message": "Προβολή στον Εξερευνητή"
},
"visitWebSite": { "visitWebSite": {
"message": "Επισκεφθείτε τον ιστότοπό μας" "message": "Επισκεφθείτε τον ιστότοπό μας"
}, },

View File

@ -259,6 +259,22 @@
"betaWelcome": { "betaWelcome": {
"message": "Welcome to MetaMask Beta" "message": "Welcome to MetaMask Beta"
}, },
"blockExplorerAccountAction": {
"message": "Account",
"description": "This is used with viewOnEtherscan and viewInExplorer e.g View Account in Explorer"
},
"blockExplorerAssetAction": {
"message": "Asset",
"description": "This is used with viewOnEtherscan and viewInExplorer e.g View Asset in Explorer"
},
"blockExplorerSwapAction": {
"message": "Swap",
"description": "This is used with viewOnEtherscan e.g View Swap on Etherscan"
},
"blockExplorerTransactionAction": {
"message": "Transaction",
"description": "This is used with viewOnCustomBlockExplorer and viewOnEtherscan e.g View Transaction on Etherscan"
},
"blockExplorerUrl": { "blockExplorerUrl": {
"message": "Block Explorer URL" "message": "Block Explorer URL"
}, },
@ -2781,13 +2797,16 @@
"message": "View More" "message": "View More"
}, },
"viewOnCustomBlockExplorer": { "viewOnCustomBlockExplorer": {
"message": "View at $1" "message": "View $1 at $2",
"description": "$1 is the action type. e.g (Account, Transaction, Swap) and $2 is the Custom Block Exporer URL"
}, },
"viewOnEtherscan": { "viewOnEtherscan": {
"message": "View on Etherscan" "message": "View $1 on Etherscan",
"description": "$1 is the action type. e.g (Account, Transaction, Swap)"
}, },
"viewinExplorer": { "viewinExplorer": {
"message": "View in Explorer" "message": "View $1 in Explorer",
"description": "$1 is the action type. e.g (Account, Transaction, Swap)"
}, },
"visitWebSite": { "visitWebSite": {
"message": "Visit our web site" "message": "Visit our web site"

View File

@ -2386,15 +2386,6 @@
"viewMore": { "viewMore": {
"message": "Ver más" "message": "Ver más"
}, },
"viewOnCustomBlockExplorer": {
"message": "Ver en $1"
},
"viewOnEtherscan": {
"message": "Ver en Etherscan"
},
"viewinExplorer": {
"message": "Ver en el explorador"
},
"visitWebSite": { "visitWebSite": {
"message": "Visite nuestro sitio web" "message": "Visite nuestro sitio web"
}, },

View File

@ -2386,15 +2386,6 @@
"viewMore": { "viewMore": {
"message": "Ver más" "message": "Ver más"
}, },
"viewOnCustomBlockExplorer": {
"message": "Ver en $1"
},
"viewOnEtherscan": {
"message": "Ver en Etherscan"
},
"viewinExplorer": {
"message": "Ver en el explorador"
},
"visitWebSite": { "visitWebSite": {
"message": "Visite nuestro sitio web" "message": "Visite nuestro sitio web"
}, },

View File

@ -1117,15 +1117,6 @@
"viewContact": { "viewContact": {
"message": "Kuva kontakt" "message": "Kuva kontakt"
}, },
"viewOnCustomBlockExplorer": {
"message": "Vaata $1"
},
"viewOnEtherscan": {
"message": "Kuva Etherscanil"
},
"viewinExplorer": {
"message": "Kuva Exploreris"
},
"visitWebSite": { "visitWebSite": {
"message": "Külastage meie veebilehte" "message": "Külastage meie veebilehte"
}, },

View File

@ -1127,15 +1127,6 @@
"viewContact": { "viewContact": {
"message": "مشاهده تماس" "message": "مشاهده تماس"
}, },
"viewOnCustomBlockExplorer": {
"message": "مشاهده در 1$1"
},
"viewOnEtherscan": {
"message": "مشاهده در ایترسکن"
},
"viewinExplorer": {
"message": "مشاهده در براوزر"
},
"visitWebSite": { "visitWebSite": {
"message": "از وب سایت ما دیدن نمایید" "message": "از وب سایت ما دیدن نمایید"
}, },

View File

@ -1124,15 +1124,6 @@
"viewContact": { "viewContact": {
"message": "Näytä yhteyshenkilö" "message": "Näytä yhteyshenkilö"
}, },
"viewOnCustomBlockExplorer": {
"message": "Tarkastele kohdassa $1"
},
"viewOnEtherscan": {
"message": "Näytä Etherscanissa"
},
"viewinExplorer": {
"message": "Tarkastele Explorerissa"
},
"visitWebSite": { "visitWebSite": {
"message": "Vieraile verkkosivustollamme" "message": "Vieraile verkkosivustollamme"
}, },

View File

@ -1021,15 +1021,6 @@
"viewContact": { "viewContact": {
"message": "Tingnan ang Contact" "message": "Tingnan ang Contact"
}, },
"viewOnCustomBlockExplorer": {
"message": "Tingnan sa $1"
},
"viewOnEtherscan": {
"message": "Tingnan sa Etherscan"
},
"viewinExplorer": {
"message": "Tingnan sa Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Bisitahin ang aming web site" "message": "Bisitahin ang aming web site"
}, },

View File

@ -1103,15 +1103,6 @@
"viewContact": { "viewContact": {
"message": "Voir contact" "message": "Voir contact"
}, },
"viewOnCustomBlockExplorer": {
"message": "Afficher sur $1"
},
"viewOnEtherscan": {
"message": "Voir sur Etherscan"
},
"viewinExplorer": {
"message": "Afficher dans Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Visitez notre site web" "message": "Visitez notre site web"
}, },

View File

@ -1121,15 +1121,6 @@
"viewContact": { "viewContact": {
"message": "הצג איש קשר" "message": "הצג איש קשר"
}, },
"viewOnCustomBlockExplorer": {
"message": "הצג ב- $1"
},
"viewOnEtherscan": {
"message": "הצג ב-Etherscan"
},
"viewinExplorer": {
"message": "הצג באקספלורר"
},
"visitWebSite": { "visitWebSite": {
"message": "בקר/י באתר שלנו" "message": "בקר/י באתר שלנו"
}, },

View File

@ -2386,15 +2386,6 @@
"viewMore": { "viewMore": {
"message": "और देखें" "message": "और देखें"
}, },
"viewOnCustomBlockExplorer": {
"message": "$1 पर देखें"
},
"viewOnEtherscan": {
"message": "Etherscan पर देखें"
},
"viewinExplorer": {
"message": "एक्सप्लोरर में देखें"
},
"visitWebSite": { "visitWebSite": {
"message": "हमारी वेबसाइट पर जाएँ" "message": "हमारी वेबसाइट पर जाएँ"
}, },

View File

@ -1117,15 +1117,6 @@
"viewContact": { "viewContact": {
"message": "Prikaži kontakt" "message": "Prikaži kontakt"
}, },
"viewOnCustomBlockExplorer": {
"message": "Prikaži u $1"
},
"viewOnEtherscan": {
"message": "Prikaži na Etherscanu"
},
"viewinExplorer": {
"message": "Prikaži u Exploreru"
},
"visitWebSite": { "visitWebSite": {
"message": "Posjetite naše mrežno mjesto" "message": "Posjetite naše mrežno mjesto"
}, },

View File

@ -688,9 +688,6 @@
"viewAccount": { "viewAccount": {
"message": "Wè Kont" "message": "Wè Kont"
}, },
"viewOnEtherscan": {
"message": "Wè sou Etherscan"
},
"visitWebSite": { "visitWebSite": {
"message": "Vizite sit entènèt nou an" "message": "Vizite sit entènèt nou an"
}, },

View File

@ -1117,15 +1117,6 @@
"viewContact": { "viewContact": {
"message": "Névjegy megtekintése" "message": "Névjegy megtekintése"
}, },
"viewOnCustomBlockExplorer": {
"message": "Megtekintés $1-kor"
},
"viewOnEtherscan": {
"message": "Nézze meg Etherscanen"
},
"viewinExplorer": {
"message": "Megtekintés Explorerben"
},
"visitWebSite": { "visitWebSite": {
"message": "Látogass el weboldalunkra" "message": "Látogass el weboldalunkra"
}, },

View File

@ -2386,15 +2386,6 @@
"viewMore": { "viewMore": {
"message": "Lihat Selengkapnya" "message": "Lihat Selengkapnya"
}, },
"viewOnCustomBlockExplorer": {
"message": "Lihat di $1"
},
"viewOnEtherscan": {
"message": "Lihat di Etherscan"
},
"viewinExplorer": {
"message": "Lihat di Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Kunjungi situs web kami" "message": "Kunjungi situs web kami"
}, },

View File

@ -1947,15 +1947,6 @@
"viewContact": { "viewContact": {
"message": "Visualizza contatto" "message": "Visualizza contatto"
}, },
"viewOnCustomBlockExplorer": {
"message": "Vedi su $1"
},
"viewOnEtherscan": {
"message": "Vedi su Etherscan"
},
"viewinExplorer": {
"message": "Vista in Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Visita il nostro sito web" "message": "Visita il nostro sito web"
}, },

View File

@ -2386,15 +2386,6 @@
"viewMore": { "viewMore": {
"message": "詳細を表示" "message": "詳細を表示"
}, },
"viewOnCustomBlockExplorer": {
"message": "$1 に表示"
},
"viewOnEtherscan": {
"message": "Etherscan で表示"
},
"viewinExplorer": {
"message": "Explorer で表示"
},
"visitWebSite": { "visitWebSite": {
"message": "当社の Web サイトにアクセス" "message": "当社の Web サイトにアクセス"
}, },

View File

@ -1127,15 +1127,6 @@
"viewContact": { "viewContact": {
"message": "ಸಂಪರ್ಕವನ್ನು ವೀಕ್ಷಿಸಿ" "message": "ಸಂಪರ್ಕವನ್ನು ವೀಕ್ಷಿಸಿ"
}, },
"viewOnCustomBlockExplorer": {
"message": "$1 ನಲ್ಲಿ ವೀಕ್ಷಿಸಿ"
},
"viewOnEtherscan": {
"message": "ಎಥೆರ್‌ಸ್ಕ್ಯಾನ್‌ನಲ್ಲಿ ವೀಕ್ಷಿಸಿ"
},
"viewinExplorer": {
"message": "ಎಕ್ಸ್‌ಪ್ಲೋರರ್‌ನಲ್ಲಿ ವೀಕ್ಷಿಸಿ"
},
"visitWebSite": { "visitWebSite": {
"message": "ನಮ್ಮ ವೆಬ್ ಸೈಟ್ ಅನ್ನು ಭೇಟಿ ಮಾಡಿ" "message": "ನಮ್ಮ ವೆಬ್ ಸೈಟ್ ಅನ್ನು ಭೇಟಿ ಮಾಡಿ"
}, },

View File

@ -2386,15 +2386,6 @@
"viewMore": { "viewMore": {
"message": "더 보기" "message": "더 보기"
}, },
"viewOnCustomBlockExplorer": {
"message": "$1에서 보기"
},
"viewOnEtherscan": {
"message": "Etherscan에서 보기"
},
"viewinExplorer": {
"message": "탐색기에서 보기"
},
"visitWebSite": { "visitWebSite": {
"message": "당사 웹사이트 방문하기" "message": "당사 웹사이트 방문하기"
}, },

View File

@ -1127,15 +1127,6 @@
"viewContact": { "viewContact": {
"message": "Peržiūrėti kontaktą" "message": "Peržiūrėti kontaktą"
}, },
"viewOnCustomBlockExplorer": {
"message": "Peržiūrėti $1"
},
"viewOnEtherscan": {
"message": "Peržiūrėti „Etherscan“"
},
"viewinExplorer": {
"message": "Peržiūrėti naršyklėje"
},
"visitWebSite": { "visitWebSite": {
"message": "Apsilankykite mūsų svetainėje" "message": "Apsilankykite mūsų svetainėje"
}, },

View File

@ -1123,15 +1123,6 @@
"viewContact": { "viewContact": {
"message": "Skatīt līgumu" "message": "Skatīt līgumu"
}, },
"viewOnCustomBlockExplorer": {
"message": "Skatīt $1"
},
"viewOnEtherscan": {
"message": "Skatīt Etherscan"
},
"viewinExplorer": {
"message": "Skatīt Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Apmeklējiet mūsu tīmekļa vietni" "message": "Apmeklējiet mūsu tīmekļa vietni"
}, },

View File

@ -1101,15 +1101,6 @@
"viewContact": { "viewContact": {
"message": "Lihat Kenalan" "message": "Lihat Kenalan"
}, },
"viewOnCustomBlockExplorer": {
"message": "Lihat pada $1"
},
"viewOnEtherscan": {
"message": "Lihat di Etherscan"
},
"viewinExplorer": {
"message": "Lihat di Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Kunjungi laman web kami" "message": "Kunjungi laman web kami"
}, },

View File

@ -1102,15 +1102,6 @@
"viewContact": { "viewContact": {
"message": "Se kontrakt" "message": "Se kontrakt"
}, },
"viewOnCustomBlockExplorer": {
"message": "Vis ved $1 "
},
"viewOnEtherscan": {
"message": "Vis på Etherscan "
},
"viewinExplorer": {
"message": "Se i Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Besøk nettsiden vår " "message": "Besøk nettsiden vår "
}, },

View File

@ -2386,15 +2386,6 @@
"viewMore": { "viewMore": {
"message": "Tumingin Pa" "message": "Tumingin Pa"
}, },
"viewOnCustomBlockExplorer": {
"message": "Tingnan sa $1"
},
"viewOnEtherscan": {
"message": "Tingnan sa Etherscan"
},
"viewinExplorer": {
"message": "Tingnan sa Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Bisitahin ang aming website" "message": "Bisitahin ang aming website"
}, },

View File

@ -1115,15 +1115,6 @@
"viewContact": { "viewContact": {
"message": "Wyświetl kontakt" "message": "Wyświetl kontakt"
}, },
"viewOnCustomBlockExplorer": {
"message": "Wyświetl w $1"
},
"viewOnEtherscan": {
"message": "Zobacz na Etherscan"
},
"viewinExplorer": {
"message": "Wyświetl w przeglądarce"
},
"visitWebSite": { "visitWebSite": {
"message": "Odwiedź naszą stronę" "message": "Odwiedź naszą stronę"
}, },

View File

@ -2386,15 +2386,6 @@
"viewMore": { "viewMore": {
"message": "Exibir Mais" "message": "Exibir Mais"
}, },
"viewOnCustomBlockExplorer": {
"message": "Exibir em $1"
},
"viewOnEtherscan": {
"message": "Exibir no Etherscan"
},
"viewinExplorer": {
"message": "Exibir no Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Visite nosso website" "message": "Visite nosso website"
}, },

View File

@ -1108,15 +1108,6 @@
"viewContact": { "viewContact": {
"message": "Vizualizare contact" "message": "Vizualizare contact"
}, },
"viewOnCustomBlockExplorer": {
"message": "Vizualizați la $1"
},
"viewOnEtherscan": {
"message": "Vizualizați pe Etherscan"
},
"viewinExplorer": {
"message": "Vizualizare în Explorator"
},
"visitWebSite": { "visitWebSite": {
"message": "Accesați site-ul nostru" "message": "Accesați site-ul nostru"
}, },

View File

@ -2386,15 +2386,6 @@
"viewMore": { "viewMore": {
"message": "Посмотреть больше" "message": "Посмотреть больше"
}, },
"viewOnCustomBlockExplorer": {
"message": "Посмотреть на $1"
},
"viewOnEtherscan": {
"message": "Посмотреть на Etherscan"
},
"viewinExplorer": {
"message": "Проводник в проводнике"
},
"visitWebSite": { "visitWebSite": {
"message": "Посетите наш веб-сайт" "message": "Посетите наш веб-сайт"
}, },

View File

@ -1084,15 +1084,6 @@
"viewContact": { "viewContact": {
"message": "Zobraziť kontakt" "message": "Zobraziť kontakt"
}, },
"viewOnCustomBlockExplorer": {
"message": "Zobraziť na $1"
},
"viewOnEtherscan": {
"message": "Zobraziť na Etherscan"
},
"viewinExplorer": {
"message": "Zobraziť v Exploreri"
},
"visitWebSite": { "visitWebSite": {
"message": "Navštivte naši stránku" "message": "Navštivte naši stránku"
}, },

View File

@ -1112,15 +1112,6 @@
"viewContact": { "viewContact": {
"message": "Ogled stika" "message": "Ogled stika"
}, },
"viewOnCustomBlockExplorer": {
"message": "Ogled na $1 "
},
"viewOnEtherscan": {
"message": "Poglej na Etherscan"
},
"viewinExplorer": {
"message": "Ogled v Explorerju"
},
"visitWebSite": { "visitWebSite": {
"message": "Obiščite našo spletno stran" "message": "Obiščite našo spletno stran"
}, },

View File

@ -1112,15 +1112,6 @@
"viewContact": { "viewContact": {
"message": "Pogledaj kontakt" "message": "Pogledaj kontakt"
}, },
"viewOnCustomBlockExplorer": {
"message": "Pogledaj na $1"
},
"viewOnEtherscan": {
"message": "Pogledaj na Etherscan-u"
},
"viewinExplorer": {
"message": "Pogledati u Explorer-u"
},
"visitWebSite": { "visitWebSite": {
"message": "Posetite našu veb lokaciju" "message": "Posetite našu veb lokaciju"
}, },

View File

@ -1102,15 +1102,6 @@
"viewContact": { "viewContact": {
"message": "Visa kontakt" "message": "Visa kontakt"
}, },
"viewOnCustomBlockExplorer": {
"message": "Visa vid $1"
},
"viewOnEtherscan": {
"message": "Visa på Etherscan"
},
"viewinExplorer": {
"message": "Visa i Utforskaren"
},
"visitWebSite": { "visitWebSite": {
"message": "Besök vår hemsida" "message": "Besök vår hemsida"
}, },

View File

@ -1105,15 +1105,6 @@
"viewContact": { "viewContact": {
"message": "Tazama Mawasiliano" "message": "Tazama Mawasiliano"
}, },
"viewOnCustomBlockExplorer": {
"message": "Tazama kwenye $1"
},
"viewOnEtherscan": {
"message": "Tazama kwenye Etherscan"
},
"viewinExplorer": {
"message": "Tazama kwenye Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Tembelea Tovuti yetu" "message": "Tembelea Tovuti yetu"
}, },

View File

@ -1900,15 +1900,6 @@
"viewContact": { "viewContact": {
"message": "Tingnan ang Contact" "message": "Tingnan ang Contact"
}, },
"viewOnCustomBlockExplorer": {
"message": "Tingnan sa $1"
},
"viewOnEtherscan": {
"message": "Tingnan sa Etherscan"
},
"viewinExplorer": {
"message": "Tingnan sa Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Bisitahin ang aming website" "message": "Bisitahin ang aming website"
}, },

View File

@ -1127,15 +1127,6 @@
"viewContact": { "viewContact": {
"message": "Переглянути контакт" "message": "Переглянути контакт"
}, },
"viewOnCustomBlockExplorer": {
"message": "Дивитись на $1"
},
"viewOnEtherscan": {
"message": "Дивитись на Etherscan"
},
"viewinExplorer": {
"message": "Дивитись в Explorer"
},
"visitWebSite": { "visitWebSite": {
"message": "Відвідайте наш веб-сайт" "message": "Відвідайте наш веб-сайт"
}, },

View File

@ -2386,15 +2386,6 @@
"viewMore": { "viewMore": {
"message": "Xem thêm" "message": "Xem thêm"
}, },
"viewOnCustomBlockExplorer": {
"message": "Xem tại $1"
},
"viewOnEtherscan": {
"message": "Xem trên Etherscan"
},
"viewinExplorer": {
"message": "Xem trên trình khám phá"
},
"visitWebSite": { "visitWebSite": {
"message": "Truy cập trang web của chúng tôi" "message": "Truy cập trang web của chúng tôi"
}, },

View File

@ -1924,15 +1924,6 @@
"viewContact": { "viewContact": {
"message": "查看联系人" "message": "查看联系人"
}, },
"viewOnCustomBlockExplorer": {
"message": "在 $1 查看"
},
"viewOnEtherscan": {
"message": "在 Etherscan以太坊浏览器上查看"
},
"viewinExplorer": {
"message": "在浏览器中查看"
},
"visitWebSite": { "visitWebSite": {
"message": "访问我们的网站" "message": "访问我们的网站"
}, },

View File

@ -1115,15 +1115,6 @@
"viewContact": { "viewContact": {
"message": "觀看聯絡資訊" "message": "觀看聯絡資訊"
}, },
"viewOnCustomBlockExplorer": {
"message": "在 $1 瀏覽"
},
"viewOnEtherscan": {
"message": "在 Etherscan 上瀏覽"
},
"viewinExplorer": {
"message": "在 Explorer 上瀏覽"
},
"visitWebSite": { "visitWebSite": {
"message": "造訪我們的網站" "message": "造訪我們的網站"
}, },

View File

@ -117,7 +117,9 @@ export default function AccountOptionsMenu({ anchorElement, onClose }) {
} }
iconClassName="fas fa-external-link-alt" iconClassName="fas fa-external-link-alt"
> >
{rpcPrefs.blockExplorerUrl ? t('viewinExplorer') : t('viewOnEtherscan')} {rpcPrefs.blockExplorerUrl
? t('viewinExplorer', [t('blockExplorerAccountAction')])
: t('viewOnEtherscan', [t('blockExplorerAccountAction')])}
</MenuItem> </MenuItem>
<MenuItem <MenuItem
data-testid="account-options-menu__connected-sites" data-testid="account-options-menu__connected-sites"

View File

@ -83,7 +83,9 @@ export default class AccountDetailsModal extends Component {
? this.context.t('blockExplorerView', [ ? this.context.t('blockExplorerView', [
rpcPrefs.blockExplorerUrl.match(/^https?:\/\/(.+)/u)[1], rpcPrefs.blockExplorerUrl.match(/^https?:\/\/(.+)/u)[1],
]) ])
: this.context.t('viewOnEtherscan')} : this.context.t('viewOnEtherscan', [
this.context.t('blockExplorerAccountAction'),
])}
</Button> </Button>
{exportPrivateKeyFeatureEnabled ? ( {exportPrivateKeyFeatureEnabled ? (

View File

@ -181,8 +181,13 @@ export default class TransactionListItemDetails extends PureComponent {
containerClassName="transaction-list-item-details__header-button-tooltip-container" containerClassName="transaction-list-item-details__header-button-tooltip-container"
title={ title={
blockExplorerUrl blockExplorerUrl
? t('viewOnCustomBlockExplorer', [blockExplorerUrl]) ? t('viewOnCustomBlockExplorer', [
: t('viewOnEtherscan') t('blockExplorerTransactionAction'),
blockExplorerUrl,
])
: t('viewOnEtherscan', [
t('blockExplorerTransactionAction'),
])
} }
> >
<Button <Button

View File

@ -50,7 +50,9 @@ const AssetOptions = ({
onClickBlockExplorer(); onClickBlockExplorer();
}} }}
> >
{isEthNetwork ? t('viewOnEtherscan') : t('viewinExplorer')} {isEthNetwork
? t('viewOnEtherscan', [t('blockExplorerAssetAction')])
: t('viewinExplorer', [t('blockExplorerAssetAction')])}
</MenuItem> </MenuItem>
{isNativeAsset ? null : ( {isNativeAsset ? null : (
<MenuItem <MenuItem

View File

@ -43,7 +43,7 @@ describe('AwaitingSwap', () => {
); );
expect(getByText('Transaction complete')).toBeInTheDocument(); expect(getByText('Transaction complete')).toBeInTheDocument();
expect(getByText('tokens received: ETH')).toBeInTheDocument(); expect(getByText('tokens received: ETH')).toBeInTheDocument();
expect(getByText('View at etherscan.io')).toBeInTheDocument(); expect(getByText('View Swap at etherscan.io')).toBeInTheDocument();
expect(getByText('Create a new swap')).toBeInTheDocument(); expect(getByText('Create a new swap')).toBeInTheDocument();
}); });
}); });

View File

@ -5,7 +5,7 @@ exports[`ViewOnEtherScanLink renders the component with a custom block explorer
<div <div
class="awaiting-swap__view-on-etherscan awaiting-swap__view-on-etherscan--visible" class="awaiting-swap__view-on-etherscan awaiting-swap__view-on-etherscan--visible"
> >
View at custom-blockchain.explorer View Swap at custom-blockchain.explorer
</div> </div>
</div> </div>
`; `;
@ -15,7 +15,7 @@ exports[`ViewOnEtherScanLink renders the component with initial props 1`] = `
<div <div
class="awaiting-swap__view-on-etherscan awaiting-swap__view-on-etherscan--visible" class="awaiting-swap__view-on-etherscan awaiting-swap__view-on-etherscan--visible"
> >
View on Etherscan View Swap on Etherscan
</div> </div>
</div> </div>
`; `;

View File

@ -34,8 +34,11 @@ export default function ViewOnEtherScanLink({
}} }}
> >
{isCustomBlockExplorerUrl {isCustomBlockExplorerUrl
? t('viewOnCustomBlockExplorer', [getURLHostName(blockExplorerUrl)]) ? t('viewOnCustomBlockExplorer', [
: t('viewOnEtherscan')} t('blockExplorerSwapAction'),
getURLHostName(blockExplorerUrl),
])
: t('viewOnEtherscan', [t('blockExplorerSwapAction')])}
</div> </div>
); );
} }

View File

@ -18,7 +18,7 @@ describe('ViewOnEtherScanLink', () => {
const { container, getByText } = renderWithProvider( const { container, getByText } = renderWithProvider(
<ViewOnEtherScanLink {...createProps()} />, <ViewOnEtherScanLink {...createProps()} />,
); );
expect(getByText('View on Etherscan')).toBeInTheDocument(); expect(getByText('View Swap on Etherscan')).toBeInTheDocument();
expect(container).toMatchSnapshot(); expect(container).toMatchSnapshot();
}); });
@ -31,7 +31,9 @@ describe('ViewOnEtherScanLink', () => {
})} })}
/>, />,
); );
expect(getByText('View at custom-blockchain.explorer')).toBeInTheDocument(); expect(
getByText('View Swap at custom-blockchain.explorer'),
).toBeInTheDocument();
expect(container).toMatchSnapshot(); expect(container).toMatchSnapshot();
}); });
}); });