From 57e90196cc7ff33998f5274c1c06decef2897a67 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Tue, 2 May 2023 12:14:48 -0500 Subject: [PATCH] UX: Multichain: Provide localization for the network menu (#18880) --- app/_locales/en/messages.json | 3 +++ ui/components/multichain/app-header/app-header.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 7fc347a2d..06a134f72 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -2281,6 +2281,9 @@ "networkIsBusy": { "message": "Network is busy. Gas prices are high and estimates are less accurate." }, + "networkMenu": { + "message": "Network Menu" + }, "networkMenuHeading": { "message": "Select a network" }, diff --git a/ui/components/multichain/app-header/app-header.js b/ui/components/multichain/app-header/app-header.js index 4a5a768d8..e71caff19 100644 --- a/ui/components/multichain/app-header/app-header.js +++ b/ui/components/multichain/app-header/app-header.js @@ -150,7 +150,7 @@ export const AppHeader = ({ onClick }) => { className="multichain-app-header__contents--avatar-network" ref={menuRef} as="button" - aria-label="Network Menu" // TODO: needs locale + aria-label={t('networkMenu')} padding={0} name={currentNetwork?.nickname} src={currentNetwork?.rpcPrefs?.imageUrl}