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": {
|
||||
"message": "Asset"
|
||||
},
|
||||
"assets": {
|
||||
"message": "Assets"
|
||||
},
|
||||
"attemptingConnect": {
|
||||
"message": "Attempting to connect to blockchain."
|
||||
},
|
||||
|
@ -204,6 +204,7 @@ export default class Home extends PureComponent {
|
||||
}
|
||||
|
||||
render () {
|
||||
const { t } = this.context
|
||||
const {
|
||||
defaultHomeActiveTabName,
|
||||
onTabClick,
|
||||
@ -237,7 +238,7 @@ export default class Home extends PureComponent {
|
||||
activeClassName="home__tab--active"
|
||||
className="home__tab"
|
||||
data-testid="home__asset-tab"
|
||||
name="Assets"
|
||||
name={t('assets')}
|
||||
>
|
||||
<AssetList
|
||||
onClickAsset={(asset) => history.push(`${ASSET_ROUTE}/${asset}`)}
|
||||
@ -247,7 +248,7 @@ export default class Home extends PureComponent {
|
||||
activeClassName="home__tab--active"
|
||||
className="home__tab"
|
||||
data-testid="home__history-tab"
|
||||
name="History"
|
||||
name={t('history')}
|
||||
>
|
||||
<TransactionList />
|
||||
</Tab>
|
||||
|
Loading…
Reference in New Issue
Block a user