James Prado 816ce3180f Translation Updates (#1323)
* Update account view routing

* Temporarily add unicode character to translated strings for testing

* Temporarily select add unicode to all untranslated strings

* Format changes

* Add all english translations for /account & /generate

* Add the rest of the english translations

* Add a few more missing translations

* Update en translations

* Get selectedLanguage from localstorage instead of redux sttate

* Update snapshots

* Add missing translation keys & Update translate functs & change variable prefix

* translate all markdown strings & remove old translation strings

* Update snapshot

* Add a few more translation strs

* Move raw strings being translated into json

* All translation keys are now Uppercase

* Fix up the last few translations

* Update snapshot

* Uppercase de translation strings

* Bring back shapeshift logo on swap

* Fix contracts tab translations

* Fix a few more translations

* Fix translations

* remove debugging stuff

* Update snapshots

* Use react.fragment as markdown root renderer

* Seperate markdown translations into their own function

* Clean up translation functions

* Clean up translation functions

* Update snapshot

* Fix some broken translation strings

* Add prettier ignore file
2018-03-21 22:50:25 -05:00

74 lines
2.3 KiB
TypeScript

import React from 'react';
import { Link } from 'react-router-dom';
import translate from 'translations';
import { WalletType } from '../GenerateWallet';
import SiteImage from 'assets/images/unlock-guide/site.png';
import TabImage from 'assets/images/unlock-guide/tab.png';
import SelectKeystoreImage from 'assets/images/unlock-guide/select-keystore.png';
import ProvideKeystoreImage from 'assets/images/unlock-guide/provide-keystore.png';
import SelectMnemonicImage from 'assets/images/unlock-guide/select-mnemonic.png';
import ProvideMnemonicImage from 'assets/images/unlock-guide/provide-mnemonic.png';
import './FinalSteps.scss';
interface Props {
walletType: WalletType;
}
const FinalSteps: React.SFC<Props> = ({ walletType }) => {
const steps = [
{
name: translate('MNEMONIC_FINAL_STEP_1'),
image: SiteImage
},
{
name: translate('MNEMONIC_FINAL_STEP_2'),
image: TabImage
}
];
if (walletType === WalletType.Keystore) {
steps.push({
name: translate('MNEMONIC_FINAL_STEP_3'),
image: SelectKeystoreImage
});
steps.push({
name: translate('MNEMONIC_FINAL_STEP_5'),
image: ProvideKeystoreImage
});
} else if (walletType === WalletType.Mnemonic) {
steps.push({
name: translate('MNEMONIC_FINAL_STEP_3'),
image: SelectMnemonicImage
});
steps.push({
name: translate('MNEMONIC_FINAL_STEP_4'),
image: ProvideMnemonicImage
});
}
return (
<div className="FinalSteps">
<h1 className="FinalSteps-title">{translate('ADD_LABEL_6')}</h1>
<p className="FinalSteps-help">{translate('MNEMONIC_FINAL_DESCRIPTION')}</p>
<div className="FinalSteps-steps row">
{steps.map((step, index) => (
<div key={index} className="StepBox col-lg-3 col-sm-6 col-xs-12">
<h4 className="StepBox-title">{step.name}</h4>
<div className="StepBox-screen">
<img className="StepBox-screen-img" src={step.image} />
<div className="StepBox-screen-number">{index + 1}</div>
</div>
</div>
))}
</div>
<div className="FinalSteps-buttons">
<Link to="/account" className="FinalSteps-buttons-btn btn btn-primary btn-lg">
{translate('GO_TO_ACCOUNT')}
</Link>
</div>
</div>
);
};
export default FinalSteps;