1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-12 17:10:56 +00:00

add translations

This commit is contained in:
Vladimir Volek 2019-04-23 13:58:05 +02:00
parent 97f372fe01
commit bbabdca732
2 changed files with 21 additions and 2 deletions

View File

@ -122,8 +122,18 @@ class CoinMenu extends PureComponent<Props> {
{this.isMenuEmpty() && ( {this.isMenuEmpty() && (
<Empty> <Empty>
<Gray> <Gray>
Select a coin in{' '} <FormattedMessage
<StyledLinkEmpty to="/settings"> application settings</StyledLinkEmpty> {...l10nMessages.TR_SELECT_COINS}
values={{
TR_SELECT_COINS_LINK: (
<StyledLinkEmpty to="/settings">
<FormattedMessage
{...l10nMessages.TR_SELECT_COINS_LINK}
/>
</StyledLinkEmpty>
),
}}
/>{' '}
</Gray> </Gray>
</Empty> </Empty>
)} )}

View File

@ -7,6 +7,15 @@ const definedMessages: Messages = defineMessages({
id: 'TR_OTHER_COINS', id: 'TR_OTHER_COINS',
defaultMessage: 'Other coins', defaultMessage: 'Other coins',
}, },
TR_SELECT_COINS: {
id: 'TR_SELECT_COINS',
description: 'COMPLETE SENTENCE: Select a coin in application settings',
defaultMessage: 'Select a coin in {TR_SELECT_COINS_LINK}',
},
TR_SELECT_COINS_LINK: {
id: 'TR_SELECT_COINS_LINK',
defaultMessage: 'application settings',
},
}); });
export default definedMessages; export default definedMessages;