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

72 lines
2.1 KiB
TypeScript

import React from 'react';
import translate from 'translations';
import { Link } from 'react-router-dom';
import { HelpLink } from 'components/ui';
import { HELP_ARTICLE } from 'config';
import OnboardSlide from './OnboardSlide';
import onboardIconTen from 'assets/images/onboarding/slide-10.svg';
interface Props {
closeModal(): void;
}
const FinalSlide: React.SFC<Props> = ({ closeModal }) => {
const header = translate('ONBOARD_FINAL_TITLE');
const subheader = translate('ONBOARD_FINAL_SUBTITLE');
const content = (
<ul>
<li>
<HelpLink article={HELP_ARTICLE.HARDWARE_WALLET_RECOMMENDATIONS} className="strong">
{translate('ONBOARD_FINAL_CONTENT__2')}
</HelpLink>
</li>
<li>
<HelpLink article={HELP_ARTICLE.MIGRATE_TO_METAMASK} className="strong">
{translate('ONBOARD_FINAL_CONTENT__3')}
</HelpLink>
</li>
<li>
<HelpLink article={HELP_ARTICLE.RUNNING_LOCALLY} className="strong">
{translate('ONBOARD_FINAL_CONTENT__4')}
</HelpLink>
</li>
<li>
<HelpLink article={HELP_ARTICLE.MIGRATE_TO_LEDGER} className="strong">
{translate('ONBOARD_FINAL_CONTENT__5')}
</HelpLink>
</li>
<li>
<HelpLink article={HELP_ARTICLE.SENDING_TO_TREZOR} className="strong">
{translate('ONBOARD_FINAL_CONTENT__6')}
</HelpLink>
</li>
<li>
<HelpLink article={HELP_ARTICLE.MIGRATE_TO_METAMASK} className="strong">
{translate('ONBOARD_FINAL_CONTENT__7')}
</HelpLink>
</li>
<li>
<HelpLink article={HELP_ARTICLE.HOME} className="strong">
{translate('ONBOARD_FINAL_CONTENT__8')}
</HelpLink>
</li>
<li>
<Link onClick={closeModal} to="/account" className="strong">
<span> {translate('ONBOARD_FINAL_CONTENT__9')}</span>
</Link>
</li>
</ul>
);
return (
<OnboardSlide
header={header}
subheader={subheader}
content={content}
image={onboardIconTen}
imageSide="left"
/>
);
};
export default FinalSlide;