diff --git a/src/views/Landing/components/BetaDisclaimer/index.js b/src/views/Landing/components/BetaDisclaimer/index.js index 6c983e4c..b395e451 100644 --- a/src/views/Landing/components/BetaDisclaimer/index.js +++ b/src/views/Landing/components/BetaDisclaimer/index.js @@ -4,6 +4,7 @@ import React from 'react'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; +import { FormattedMessage } from 'react-intl'; import colors from 'config/colors'; import icons from 'config/icons'; @@ -14,6 +15,7 @@ import Button from 'components/Button'; import P from 'components/Paragraph'; import { H2 } from 'components/Heading'; import * as WalletActions from 'actions/WalletActions'; +import l10nMessages from './index.messages'; const Wrapper = styled.div` width: 100%; @@ -57,18 +59,38 @@ const StyledIcon = styled(Icon)` const BetaDisclaimer = (props: { close: () => void }) => ( -

You are opening Trezor Beta Wallet

- Trezor Beta Wallet is a public feature-testing version of the Trezor Wallet, offering the newest features before they are available to the general public. - In contrast, Trezor Wallet is feature-conservative, making sure that its functionality is maximally reliable and dependable for the general public. +

+ , + trezorBetaWallet: , + }} + /> + + , + trezorBetaWallet: , + }} + /> + - Please note that the Trezor Beta Wallet might be collecting anonymized usage data, especially error logs, for development purposes. The Trezor Wallet does not log any data. + , + trezorBetaWallet: , + }} + /> - OK, I understand +
); diff --git a/src/views/Landing/components/BetaDisclaimer/index.messages.js b/src/views/Landing/components/BetaDisclaimer/index.messages.js new file mode 100644 index 00000000..326e4054 --- /dev/null +++ b/src/views/Landing/components/BetaDisclaimer/index.messages.js @@ -0,0 +1,36 @@ +/* @flow */ +import { defineMessages } from 'react-intl'; +import type { Messages } from 'flowtype/npm/react-intl'; + +const definedMessages: Messages = defineMessages({ + TR_YOU_ARE_OPENING_TREZOR_BETA_WALLET: { + id: 'TR_YOU_ARE_OPENING_TREZOR_BETA_WALLET', + defaultMessage: 'You are opening Trezor Beta Wallet', + }, + TR_TREZOR_BETA_WALLET_IS: { + id: 'TR_TREZOR_BETA_WALLET_IS', + defaultMessage: '{trezorBetaWallet} is a public feature-testing version of the {trezorWallet}, offering the newest features before they are available to the general public.', + }, + TR_IN_CONTRAST_COMMA_TREZOR: { + id: 'TR_IN_CONTRAST_COMMA_TREZOR', + defaultMessage: 'In contrast, {trezorWallet} is feature-conservative, making sure that its functionality is maximally reliable and dependable for the general public.', + }, + TR_PLEASE_NOTE_THAT_THE_TREZOR: { + id: 'TR_PLEASE_NOTE_THAT_THE_TREZOR', + defaultMessage: 'Please note that the {trezorBetaWallet} might be collecting anonymized usage data, especially error logs, for development purposes. The {trezorWallet} does not log any data.', + }, + TR_OK_COMMA_I_UNDERSTAND: { + id: 'TR_OK_COMMA_I_UNDERSTAND', + defaultMessage: 'OK, I understand', + }, + TR_TREZOR_WALLET: { + id: 'TR_TREZOR_WALLET', + defaultMessage: 'Trezor Wallet', + }, + TR_TREZOR_BETA_WALLET: { + id: 'TR_TREZOR_BETA_WALLET', + defaultMessage: 'Trezor Beta Wallet', + }, +}); + +export default definedMessages; \ No newline at end of file