mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Use localized tab names on Home screen (#8784)
The tab names on the Home screen are now localized messages, rather than being hard-coded as English.
This commit is contained in:
parent
71e7966b6a
commit
058c63cf80
@ -242,6 +242,9 @@
|
|||||||
"asset": {
|
"asset": {
|
||||||
"message": "Asset"
|
"message": "Asset"
|
||||||
},
|
},
|
||||||
|
"assets": {
|
||||||
|
"message": "Assets"
|
||||||
|
},
|
||||||
"attemptingConnect": {
|
"attemptingConnect": {
|
||||||
"message": "Attempting to connect to blockchain."
|
"message": "Attempting to connect to blockchain."
|
||||||
},
|
},
|
||||||
|
@ -204,6 +204,7 @@ export default class Home extends PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
|
const { t } = this.context
|
||||||
const {
|
const {
|
||||||
defaultHomeActiveTabName,
|
defaultHomeActiveTabName,
|
||||||
onTabClick,
|
onTabClick,
|
||||||
@ -237,7 +238,7 @@ export default class Home extends PureComponent {
|
|||||||
activeClassName="home__tab--active"
|
activeClassName="home__tab--active"
|
||||||
className="home__tab"
|
className="home__tab"
|
||||||
data-testid="home__asset-tab"
|
data-testid="home__asset-tab"
|
||||||
name="Assets"
|
name={t('assets')}
|
||||||
>
|
>
|
||||||
<AssetList
|
<AssetList
|
||||||
onClickAsset={(asset) => history.push(`${ASSET_ROUTE}/${asset}`)}
|
onClickAsset={(asset) => history.push(`${ASSET_ROUTE}/${asset}`)}
|
||||||
@ -247,7 +248,7 @@ export default class Home extends PureComponent {
|
|||||||
activeClassName="home__tab--active"
|
activeClassName="home__tab--active"
|
||||||
className="home__tab"
|
className="home__tab"
|
||||||
data-testid="home__history-tab"
|
data-testid="home__history-tab"
|
||||||
name="History"
|
name={t('history')}
|
||||||
>
|
>
|
||||||
<TransactionList />
|
<TransactionList />
|
||||||
</Tab>
|
</Tab>
|
||||||
|
Loading…
Reference in New Issue
Block a user