View on GitHub
File Changes
    description:
      'Label for the recoveryPhraseStep1Paragraph2 on wallet settings.',
  },
+
  recoveryPhraseStep1Button: {
+
    id: 'wallet.settings.recoveryPhraseStep1Button',
+
    defaultMessage: '!!!Continue',
+
    description: 'Label for the recoveryPhraseStep1Button on wallet settings.',
+
  },
});

                      
type Props = {
    const actions = [
      {
        className: isSubmitting ? styles.isSubmitting : null,
-
        label: 'Continue',
+
        label: intl.formatMessage(messages.recoveryPhraseStep1Button),
        primary: true,
        onClick: onContinue,
        disabled: !safetyAgreement,
    return (
      <Dialog
        className={styles.dialog}
-
        title="Wallet recovery phrase verification"
+
        title={intl.formatMessage(messages.recoveryPhraseStep1Title)}
        actions={actions}
        closeOnOverlayClick
        onClose={onClose}
        closeButton={<DialogCloseButton />}
      >
-
        <p>
-
          To verify that you have the correct recovery phrase for this wallet
-
          you can enter your 12-word wallet recovery phrase on the following
-
          screen.
-
        </p>
+
        <p>{intl.formatMessage(messages.recoveryPhraseStep1Paragraph1)}</p>
        <p className={styles.checkboxContainer}>
          <Checkbox
            onChange={onToggleSafetyAgreement}
            checked={safetyAgreement}
            skin={CheckboxSkin}
            className={styles.checkbox}
          />
-
          Are you being watched? Please make sure that nobody can see your
-
          screen while you are entering your wallet recovery phrase.
+
          {intl.formatMessage(messages.recoveryPhraseStep1Paragraph2)}
        </p>
      </Dialog>
    );
// @flow
import React, { Component } from 'react';
import { observer } from 'mobx-react';
-
// import { defineMessages, intlShape } from 'react-intl';
+
import { defineMessages, intlShape } from 'react-intl';
import DialogCloseButton from '../../widgets/DialogCloseButton';
import Dialog from '../../widgets/Dialog';
import styles from './WalletRecoveryPhraseStepDialogs.scss';

                      
-
// export const messages = defineMessages({
-
//   recoveryPhraseStep1Title: {
-
//     id: 'wallet.settings.recoveryPhraseStep1Title',
-
//     defaultMessage: '!!!Wallet recovery phrase verification',
-
//     description: 'Label for the recoveryPhraseStep1Title on wallet settings.',
-
//   },
-
//   recoveryPhraseStep1Paragraph1: {
-
//     id: 'wallet.settings.recoveryPhraseStep1Paragraph1',
-
//     defaultMessage: '!!!To verify that you have the correct recovery phrase for this wallet you can enter your 12-word wallet recovery phrase on the following screen.',
-
//     description: 'Label for the recoveryPhraseStep1Paragraph1 on wallet settings.',
-
//   },
-
//     recoveryPhraseStep1Paragraph2: {
-
//     id: 'wallet.settings.recoveryPhraseStep1Paragraph2',
-
//     defaultMessage: '!!!Are you being watched? Please make sure that nobody can see your screen while you are entering your wallet recovery phrase.',
-
//     description: 'Label for the recoveryPhraseStep1Paragraph2 on wallet settings.',
-
//   },
-
// });
+
export const messages = defineMessages({
+
  recoveryPhraseStep2Title: {
+
    id: 'wallet.settings.recoveryPhraseStep2Title',
+
    defaultMessage: '!!!Wallet recovery phrase verification',
+
    description: 'Label for the recoveryPhraseStep2Title on wallet settings.',
+
  },
+
  recoveryPhraseStep2Description: {
+
    id: 'wallet.settings.recoveryPhraseStep2Description',
+
    defaultMessage:
+
      '!!!Please enter your 12-word wallet recovery phrase. Make sure you enter the words in the correct order.',
+
    description:
+
      'Label for the recoveryPhraseStep2Description on wallet settings.',
+
  },
+
  recoveryPhraseStep2Subtitle: {
+
    id: 'wallet.settings.recoveryPhraseStep2Subtitle',
+
    defaultMessage: '!!!Recovery phrase',
+
    description:
+
      'Label for the recoveryPhraseStep2Subtitle on wallet settings.',
+
  },
+
  recoveryPhraseStep2Button: {
+
    id: 'wallet.settings.recoveryPhraseStep2Button',
+
    defaultMessage: '!!!Verify',
+
    description: 'Label for the recoveryPhraseStep2Button on wallet settings.',
+
  },
+
});

                      
type Props = {
  onVerify: Function,

                      
@observer
export default class WalletRecoveryPhraseStep1 extends Component<Props, State> {
-
  // static contextTypes = {
-
  //   intl: intlShape.isRequired,
-
  // };
+
  static contextTypes = {
+
    intl: intlShape.isRequired,
+
  };

                      
  state = {
    isVeryfying: false,
  };

                      
  render() {
-
    // const { intl } = this.context;
+
    const { intl } = this.context;
    const { onClose, onVerify } = this.props;
    const { isVeryfying } = this.state;

                      
    const actions = [
      {
        className: isVeryfying ? styles.isVeryfying : null,
-
        label: 'Verify - successfuly',
+
        label: `${intl.formatMessage(
+
          messages.recoveryPhraseStep2Button
+
        )} - successfuly`,
        primary: true,
        onClick: () => onVerify(true),
        disabled: isVeryfying,
      },
      {
-
        className: isVeryfying ? styles.isVeryfying : null,
-
        label: 'Verify - failure',
+
        label: `${intl.formatMessage(
+
          messages.recoveryPhraseStep2Button
+
        )} - failure`,
        onClick: () => onVerify(false),
+
        className: 'attention',
        disabled: isVeryfying,
      },
    ];

                      
    return (
      <Dialog
        className={styles.dialog}
-
        title="Wallet recovery phrase verification"
+
        title={intl.formatMessage(messages.recoveryPhraseStep2Title)}
        actions={actions}
        closeOnOverlayClick
        onClose={onClose}
        closeButton={<DialogCloseButton />}
      >
-
        <p>
-
          Please enter your 12-word wallet recovery phrase. Make sure you enter
-
          the words in the correct order.
-
        </p>
+
        <p>{intl.formatMessage(messages.recoveryPhraseStep2Description)}</p>
        <div className={styles.subtitle}>
-
          <h2>Recovery phrase</h2>
+
          <h2>{intl.formatMessage(messages.recoveryPhraseStep2Subtitle)}</h2>
        </div>
      </Dialog>
    );
// @flow
import React, { Component } from 'react';
import { observer } from 'mobx-react';
-
// import { defineMessages, intlShape } from 'react-intl';
+
import { defineMessages, intlShape } from 'react-intl';
import { Checkbox } from 'react-polymorph/lib/components/Checkbox';
import { CheckboxSkin } from 'react-polymorph/lib/skins/simple/CheckboxSkin';
import DialogCloseButton from '../../widgets/DialogCloseButton';
import Dialog from '../../widgets/Dialog';
import styles from './WalletRecoveryPhraseStepDialogs.scss';

                      
-
// export const messages = defineMessages({
-
//   recoveryPhraseStep1Title: {
-
//     id: 'wallet.settings.recoveryPhraseStep1Title',
-
//     defaultMessage: '!!!Wallet recovery phrase verification',
-
//     description: 'Label for the recoveryPhraseStep1Title on wallet settings.',
-
//   },
-
//   recoveryPhraseStep1Paragraph1: {
-
//     id: 'wallet.settings.recoveryPhraseStep1Paragraph1',
-
//     defaultMessage: '!!!To verify that you have the correct recovery phrase for this wallet you can enter your 12-word wallet recovery phrase on the following screen.',
-
//     description: 'Label for the recoveryPhraseStep1Paragraph1 on wallet settings.',
-
//   },
-
//     recoveryPhraseStep1Paragraph2: {
-
//     id: 'wallet.settings.recoveryPhraseStep1Paragraph2',
-
//     defaultMessage: '!!!Are you being watched? Please make sure that nobody can see your screen while you are entering your wallet recovery phrase.',
-
//     description: 'Label for the recoveryPhraseStep1Paragraph2 on wallet settings.',
-
//   },
-
// });
+
export const messages = defineMessages({
+
  recoveryPhraseStep3Title: {
+
    id: 'wallet.settings.recoveryPhraseStep3Title',
+
    defaultMessage: '!!!verification successful',
+
    description: 'Label for the recoveryPhraseStep3Title on wallet settings.',
+
  },
+
  recoveryPhraseStep3Paragraph1: {
+
    id: 'wallet.settings.recoveryPhraseStep3Paragraph1',
+
    defaultMessage:
+
      '!!!You have verified the recovery phrase for this wallet. You can use it at any time to recover the funds in this wallet on another computer, even if using a different version of Daedalus.',
+
    description:
+
      'Label for the recoveryPhraseStep3Paragraph1 on wallet settings.',
+
  },
+
  recoveryPhraseStep3Paragraph2: {
+
    id: 'wallet.settings.recoveryPhraseStep3Paragraph2',
+
    defaultMessage:
+
      '!!!Please make sure to keep the paper with your wallet recovery phrase in a safe place. Anyone with access to your wallet recovery phrase can take control of your funds.',
+
    description:
+
      'Label for the recoveryPhraseStep3Paragraph2 on wallet settings.',
+
  },
+
  recoveryPhraseStep3Button: {
+
    id: 'wallet.settings.recoveryPhraseStep3Button',
+
    defaultMessage: '!!!Continue',
+
    description: 'Label for the recoveryPhraseStep3Button on wallet settings.',
+
  },
+
});

                      
type Props = {
  onClose: Function,

                      
@observer
export default class WalletRecoveryPhraseStep1 extends Component<Props> {
-
  // static contextTypes = {
-
  //   intl: intlShape.isRequired,
-
  // };
+
  static contextTypes = {
+
    intl: intlShape.isRequired,
+
  };
  render() {
-
    // const { intl } = this.context;
+
    const { intl } = this.context;
    const { onClose, onToggleSafetyAgreement, safetyAgreement } = this.props;

                      
    const actions = [
    return (
      <Dialog
        className={styles.dialog}
-
        title="verification successful"
+
        title={intl.formatMessage(messages.recoveryPhraseStep3Title)}
        actions={actions}
        closeOnOverlayClick
        onClose={onClose}
        closeButton={<DialogCloseButton />}
      >
-
        <p>
-
          You have verified the recovery phrase for this wallet. You can use it
-
          at any time to recover the funds in this wallet on another computer,
-
          even if using a different version of Daedalus.
-
        </p>
+
        <p>{intl.formatMessage(messages.recoveryPhraseStep3Paragraph1)}</p>
        <p className={styles.checkboxContainer}>
          <Checkbox
            onChange={onToggleSafetyAgreement}
            checked={safetyAgreement}
            skin={CheckboxSkin}
            className={styles.checkbox}
          />
-
          Please make sure to keep the paper with your wallet recovery phrase in
-
          a safe place. Anyone with access to your wallet recovery phrase can
-
          take control of your funds.
+
          {intl.formatMessage(messages.recoveryPhraseStep3Paragraph2)}
        </p>
      </Dialog>
    );
// @flow
import React, { Component } from 'react';
import { observer } from 'mobx-react';
-
// import { defineMessages, intlShape } from 'react-intl';
+
import { defineMessages, intlShape } from 'react-intl';
import DialogCloseButton from '../../widgets/DialogCloseButton';
import Dialog from '../../widgets/Dialog';
import styles from './WalletRecoveryPhraseStepDialogs.scss';

                      
-
// export const messages = defineMessages({
-
//   recoveryPhraseStep1Title: {
-
//     id: 'wallet.settings.recoveryPhraseStep1Title',
-
//     defaultMessage: '!!!Wallet recovery phrase verification',
-
//     description: 'Label for the recoveryPhraseStep1Title on wallet settings.',
-
//   },
-
//   recoveryPhraseStep1Paragraph1: {
-
//     id: 'wallet.settings.recoveryPhraseStep1Paragraph1',
-
//     defaultMessage: '!!!To verify that you have the correct recovery phrase for this wallet you can enter your 12-word wallet recovery phrase on the following screen.',
-
//     description: 'Label for the recoveryPhraseStep1Paragraph1 on wallet settings.',
-
//   },
-
//     recoveryPhraseStep1Paragraph2: {
-
//     id: 'wallet.settings.recoveryPhraseStep1Paragraph2',
-
//     defaultMessage: '!!!Are you being watched? Please make sure that nobody can see your screen while you are entering your wallet recovery phrase.',
-
//     description: 'Label for the recoveryPhraseStep1Paragraph2 on wallet settings.',
-
//   },
-
// });
+
export const messages = defineMessages({
+
  recoveryPhraseStep4Title: {
+
    id: 'wallet.settings.recoveryPhraseStep4Title',
+
    defaultMessage: '!!!verification failure',
+
    description: 'Label for the recoveryPhraseStep4Title on wallet settings.',
+
  },
+
  recoveryPhraseStep4Paragraph1: {
+
    id: 'wallet.settings.recoveryPhraseStep4Paragraph1',
+
    defaultMessage:
+
      '!!!The wallet recovery phrase you have entered does not match the recovery phrase associated with this wallet. Make sure you have entered the wallet recovery phrase which was written down during the wallet creation process for this wallet and make sure the words are in the correct order.',
+
    description:
+
      'Label for the recoveryPhraseStep4Paragraph1 on wallet settings.',
+
  },
+
  recoveryPhraseStep4Paragraph2: {
+
    id: 'wallet.settings.recoveryPhraseStep4Paragraph2',
+
    defaultMessage:
+
      '!!!If you are unable to verify your wallet recovery phrase you should create a new wallet and move all of the funds from this wallet to the new wallet. If you do this, make sure you keep the wallet recovery phrase for the new wallet safe and secure.',
+
    description:
+
      'Label for the recoveryPhraseStep4Paragraph2 on wallet settings.',
+
  },
+
  recoveryPhraseStep4Button: {
+
    id: 'wallet.settings.recoveryPhraseStep4Button',
+
    defaultMessage: '!!!Verify recovery phrase again',
+
    description: 'Label for the recoveryPhraseStep4Button on wallet settings.',
+
  },
+
});

                      
type Props = {
  onClose: Function,

                      
@observer
export default class WalletRecoveryPhraseStep1 extends Component<Props> {
-
  // static contextTypes = {
-
  //   intl: intlShape.isRequired,
-
  // };
+
  static contextTypes = {
+
    intl: intlShape.isRequired,
+
  };
  render() {
-
    // const { intl } = this.context;
+
    const { intl } = this.context;
    const { onClose, onVerifyAgain } = this.props;

                      
    const actions = [
      {
-
        label: 'Verify recovery phrase again',
+
        label: intl.formatMessage(messages.recoveryPhraseStep4Button),
        onClick: onVerifyAgain,
        className: 'attention',
      },
    return (
      <Dialog
        className={styles.dialog}
-
        title="verification failure"
+
        title={intl.formatMessage(messages.recoveryPhraseStep4Title)}
        actions={actions}
        closeOnOverlayClick
        onClose={onClose}
        closeButton={<DialogCloseButton />}
      >
-
        <p>
-
          The wallet recovery phrase you have entered does not match the
-
          recovery phrase associated with this wallet. Make sure you have
-
          entered the wallet recovery phrase which was written down during the
-
          wallet creation process for this wallet and make sure the words are in
-
          the correct order.
-
        </p>
-
        <p>
-
          If you are unable to verify your wallet recovery phrase you should
-
          create a new wallet and move all of the funds from this wallet to the
-
          new wallet. If you do this, make sure you keep the wallet recovery
-
          phrase for the new wallet safe and secure.
-
        </p>
+
        <p>{intl.formatMessage(messages.recoveryPhraseStep4Paragraph1)}</p>
+
        <p>{intl.formatMessage(messages.recoveryPhraseStep4Paragraph2)}</p>
      </Dialog>
    );
  }

                      
export const MNEMONICS_CHECKING_WARNING = 150; // days
export const MNEMONICS_CHECKING_NOTIFICATION = 365; // days
-

                      
-
// export const MNEMONICS_CHECKING_STATUS = {
-
//   neverCheckedOk: {
-
//     icon:
-
//   }
-
// }
-

                      
-
// Case: Wallet created less than 150 days ago.
-
// Icon: ✅
-
// Message: “We recommend that you check your recovery phrase in {timeUntilWarning}”
-
// Tooltip: ...
-

                      
-
// Case: Recovery phrase checked less than 150 days ago.
-
// Icon: ✅
-
// Message: “You confirmed that you still have the recovery phrase for this wallet {timeAgo}.”
-
// Tooltip: ...
-

                      
-
// Case: Recovery phrase checked between 150 and 365 days ago.
-
// Icon: ⚠️
-
// Message: “You confirmed that you still have the recovery phrase for this wallet {timeAgo}.”
-
// Tooltip: ...
-

                      
-
// Case: Recovery phrase checked more than 365 days ago.
-
// Icon: 🛑
-
// Message: “You confirmed that you still have the recovery phrase for this wallet {timeAgo}. We recommend that you check your recovery phrase again”
-
// Tooltip: ...
-

                      
-
// Case: Wallet created more than 150 days ago and recovery phrase never checked
-
// Icon: ⚠️
-
// Message: “We recommend that you check your recovery phrase in {timeUntilNotification}”
-
// Tooltip: ...
-

                      
-
// Case: Wallet created more than 365 days ago and recovery phrase never checked
-
// Icon: 🛑
-
// Message: “We recommend that you check your recovery phrase”
-
// Tooltip: ...
  "wallet.settings.recoveryPhraseValidationCheckedWarning": "You verified the recovery phrase for this wallet <b>{timeAgo}</b>.",
  "wallet.settings.recoveryPhraseValidationCheckedNotification": "You verified the recovery phrase for this wallet <b>{timeAgo}</b>. We recommend that you verify your wallet recovery phrase again.",
  "wallet.settings.recoveryPhraseValidationButton": "Confirm mnemonics",
+
  "wallet.settings.recoveryPhraseStep1Title": "Wallet recovery phrase verification",
+
  "wallet.settings.recoveryPhraseStep1Paragraph1": "To verify that you have the correct recovery phrase for this wallet you can enter your 12-word wallet recovery phrase on the following screen.",
+
  "wallet.settings.recoveryPhraseStep1Paragraph2": "Are you being watched? Please make sure that nobody can see your screen while you are entering your wallet recovery phrase.",
+
  "wallet.settings.recoveryPhraseStep1Button": "Continue",
+
  "wallet.settings.recoveryPhraseStep2Title": "Wallet recovery phrase verification",
+
  "wallet.settings.recoveryPhraseStep2Description": "Please enter your 12-word wallet recovery phrase. Make sure you enter the words in the correct order.",
+
  "wallet.settings.recoveryPhraseStep2Subtitle": "Recovery phrase",
+
  "wallet.settings.recoveryPhraseStep2Button": "Verify",
+
  "wallet.settings.recoveryPhraseStep3Title": "verification successful",
+
  "wallet.settings.recoveryPhraseStep3Paragraph1": "You have verified the recovery phrase for this wallet. You can use it at any time to recover the funds in this wallet on another computer, even if using a different version of Daedalus.",
+
  "wallet.settings.recoveryPhraseStep3Paragraph2": "Please make sure to keep the paper with your wallet recovery phrase in a safe place. Anyone with access to your wallet recovery phrase can take control of your funds.",
+
  "wallet.settings.recoveryPhraseStep3Button": "Continue",
+
  "wallet.settings.recoveryPhraseStep4Title": "verification failure",
+
  "wallet.settings.recoveryPhraseStep4Paragraph1": "The wallet recovery phrase you have entered does not match the recovery phrase associated with this wallet. Make sure you have entered the wallet recovery phrase which was written down during the wallet creation process for this wallet and make sure the words are in the correct order.",
+
  "wallet.settings.recoveryPhraseStep4Paragraph2": "If you are unable to verify your wallet recovery phrase you should create a new wallet and move all of the funds from this wallet to the new wallet. If you do this, make sure you keep the wallet recovery phrase for the new wallet safe and secure.",
+
  "wallet.settings.recoveryPhraseStep4Button": "Verify recovery phrase again",
  "wallet.settings.name.label": "Name",
  "wallet.settings.password": "Password",
  "wallet.settings.passwordLastUpdated": "Last updated {lastUpdated}",
  "wallet.transaction.type.exchange": "Exchange",
  "wallet.transactions.no.transactions": "No transactions",
  "wallet.transactions.no.transactions.found": "No transactions found"
-
}
\ No newline at end of file
+
}