1
0
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:
Mark Stacey 2020-06-11 15:19:13 -03:00 committed by GitHub
parent 71e7966b6a
commit 058c63cf80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -242,6 +242,9 @@
"asset": {
"message": "Asset"
},
"assets": {
"message": "Assets"
},
"attemptingConnect": {
"message": "Attempting to connect to blockchain."
},

View File

@ -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>