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.
feature/default_network_editable
Mark Stacey 5 years ago committed by GitHub
parent 71e7966b6a
commit 058c63cf80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/_locales/en/messages.json
  2. 5
      ui/app/pages/home/home.component.js

@ -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…
Cancel
Save