Browse Source

fix wording

master
Gaëtan Renaudeau 7 years ago
parent
commit
8b6aa667e4
  1. 8
      src/components/Onboarding/OnboardingBreadcrumb.js
  2. 4
      src/components/Onboarding/steps/WriteSeed/WriteSeedNano.js
  3. 2
      src/reducers/onboarding.js
  4. 82
      static/i18n/en/onboarding.yml

8
src/components/Onboarding/OnboardingBreadcrumb.js

@ -3,6 +3,7 @@
import React from 'react' import React from 'react'
import { connect } from 'react-redux' import { connect } from 'react-redux'
import findIndex from 'lodash/findIndex' import findIndex from 'lodash/findIndex'
import { translate } from 'react-i18next'
import type { OnboardingState } from 'reducers/onboarding' import type { OnboardingState } from 'reducers/onboarding'
@ -14,15 +15,16 @@ const mapStateToProps = state => ({
type Props = { type Props = {
onboarding: OnboardingState, onboarding: OnboardingState,
t: *,
} }
function OnboardingBreadcrumb(props: Props) { function OnboardingBreadcrumb(props: Props) {
const { onboarding } = props const { onboarding, t } = props
const { stepName, genuine } = onboarding const { stepName, genuine } = onboarding
const filteredSteps = onboarding.steps const filteredSteps = onboarding.steps
.filter(step => !step.external) .filter(step => !step.external)
.map(step => ({ ...step, label: step.label })) // TODO: translate .map(step => ({ ...step, label: t(step.label) })) // TODO: translate
const stepIndex = findIndex(filteredSteps, s => s.name === stepName) const stepIndex = findIndex(filteredSteps, s => s.name === stepName)
const genuineStepIndex = findIndex(filteredSteps, s => s.name === 'genuineCheck') const genuineStepIndex = findIndex(filteredSteps, s => s.name === 'genuineCheck')
@ -36,4 +38,4 @@ function OnboardingBreadcrumb(props: Props) {
) )
} }
export default connect(mapStateToProps)(OnboardingBreadcrumb) export default translate()(connect(mapStateToProps)(OnboardingBreadcrumb))

4
src/components/Onboarding/steps/WriteSeed/WriteSeedNano.js

@ -69,8 +69,8 @@ class WriteSeedNano extends PureComponent<Props, *> {
return ( return (
<Fragment> <Fragment>
<Box mb={3}> <Box mb={3}>
<Title>{t('onboarding:writeSeed.nano.title')}</Title> <Title>{t('onboarding:writeSeed.title')}</Title>
<Description>{t('onboarding:writeSeed.nano.desc')}</Description> <Description>{t('onboarding:writeSeed.desc')}</Description>
</Box> </Box>
<Box align="center" mt={3}> <Box align="center" mt={3}>
<Inner style={{ width: 700 }}> <Inner style={{ width: 700 }}>

2
src/reducers/onboarding.js

@ -82,7 +82,7 @@ const state: OnboardingState = {
}, },
{ {
name: 'selectPIN', name: 'selectPIN',
label: 'onboarding:breadcrumb.SelectPIN', label: 'onboarding:breadcrumb.selectPIN',
options: { options: {
showFooter: false, showFooter: false,
showBackground: true, showBackground: true,

82
static/i18n/en/onboarding.yml

@ -1,10 +1,10 @@
breadcrumb: breadcrumb:
selectDevice: Select device selectDevice: Select device
choosePIN: Choose PIN selectPIN: Choose PIN
saveRecovery: Recovery phrase writeSeed: Recovery phrase
securityCheck: Security check genuineCheck: Security check
setPassword: Encrypt data setPassword: Encrypt data
shareAnalytics: Analytics analytics: Analytics
start: start:
title: Welcome to Ledger Live title: Welcome to Ledger Live
startBtn: Get started startBtn: Get started
@ -33,46 +33,45 @@ selectDevice:
ledgerBlueCard: ledgerBlueCard:
title: Ledger Blue title: Ledger Blue
selectPIN: selectPIN:
initialize: # initialize:
title: Start initialization - Choose your PIN code title: Start initialization - Choose your PIN code
instructions: instructions:
nano: ledgerNano:
step1: Connect the Ledger Nano S to your computer. step1: Connect the Ledger Nano S to your computer.
step2: Press both buttons simultaneously as instructed on the screen. step2: Press both buttons simultaneously as instructed on the screen.
step3: Press the right button to select Configure as new device?. # <bold>Configure as new device?<bold>. step3: Press the right button to select Configure as new device?. # <bold>Configure as new device?<bold>.
step4: 'Choose a PIN code between 4 and 8 digits long. Then select the checkmark (✓).' step4: 'Choose a PIN code between 4 and 8 digits long. Then select the checkmark (✓).'
blue: ledgerBlue:
step1: Connect the Ledger Blue to your computer. step1: Connect the Ledger Blue to your computer.
step2: Tap on Configure as new device. step2: Tap on Configure as new device.
step3: Choose a PIN code between 4 and 8 digits long. step3: Choose a PIN code between 4 and 8 digits long.
restore: # restore:
title: Start restoration - Choose your PIN code # title: Start restoration - Choose your PIN code
instructions: # instructions:
nano: # nano:
step1: Connect the Ledger Nano S to your computer. # step1: Connect the Ledger Nano S to your computer.
step2: Press both buttons simultaneously as instructed on the screen. # step2: Press both buttons simultaneously as instructed on the screen.
step3: Press the left button to cancel Initialize as new device?. Press the right button to select Restore configuration?. # <bold>Initialize as new device?</bold> <bold>Restore configuration?</bold>. # step3: Press the left button to cancel Initialize as new device?. Press the right button to select Restore configuration?. # <bold>Initialize as new device?</bold> <bold>Restore configuration?</bold>.
step4: 'Choose a PIN code between 4 and 8 digits long. Then select the checkmark (✓).' # step4: 'Choose a PIN code between 4 and 8 digits long. Then select the checkmark (✓).'
blue: # blue:
step1: Connect the Ledger Blue to your computer. # step1: Connect the Ledger Blue to your computer.
step2: Tap on Restore configuration. # <bold>Restore configuration</bold>. # step2: Tap on Restore configuration. # <bold>Restore configuration</bold>.
step3: Choose a PIN code between 4 and 8 digits long. # step3: Choose a PIN code between 4 and 8 digits long.
disclaimer: disclaimer:
note1: Choose your own PIN code. This code will unlock your device. note1: Choose your own PIN code. This code will unlock your device.
note2: An 8-digit PIN code offers an optimum level of security. note2: An 8-digit PIN code offers an optimum level of security.
note3: Never use a device supplied with a PIN code or a 24-word recovery phrase. note3: Never use a device supplied with a PIN code or a 24-word recovery phrase.
writeSeed: writeSeed:
initialize:
title: Save your recovery phrase title: Save your recovery phrase
desc: Your device will generate a recovery phrase of 24 words, displayed only once. desc: Your device will generate a recovery phrase of 24 words, displayed only once.
nano: nano:
step1: 'Copy the word displayed below Word #1 in position 1 on a blank Recovery sheet.' # <bold>Word #1</bold> <italic>Recovery sheet</italic> step1: 'Copy the word displayed below Word #1 in position 1 on a blank Recovery sheet.' # <bold>Word #1</bold> <italic>Recovery sheet</italic>
step2: 'Press the right button to display Word #2 and repeat the process until all 24 words are copied on the Recovery sheet.' # <bold>Word #2</bold> <italic>Recovery sheet</italic> step2: 'Press the right button to display Word #2 and repeat the process until all 24 words are copied on the Recovery sheet.' # <bold>Word #2</bold> <italic>Recovery sheet</italic>
step3: 'Confirm your recovery phrase: select each requested word and press both buttons to validate it.' step3: 'Confirm your recovery phrase: select each requested word and press both buttons to validate it.'
blue: ledgerBlue:
step1: Copy each word of the recovery phrase on a blank <i>Recovery sheet</i>. Copy the words in the same order. step1: Copy each word of the recovery phrase on a blank Recovery sheet. Copy the words in the same order. # <i>Recovery sheet</i>
step2: Tap Next to move to the next words. Repeat the process until the Confirmation screen appears. # <bold>Next</bold> <bold>Confirmation</bold> step2: Tap Next to move to the next words. Repeat the process until the Confirmation screen appears. # <bold>Next</bold> <bold>Confirmation</bold>
step3: Type each requested word to confirm your recovery phrase. step3: Type each requested word to confirm your recovery phrase.
restore: restore:
title: Enter your recovery phrase title: Enter your recovery phrase
desc: Copy the 24-word recovery phrase from your Recovery sheet on your device. desc: Copy the 24-word recovery phrase from your Recovery sheet on your device.
@ -81,7 +80,7 @@ initialize:
step2: 'Select the first letters of Word #1 by pressing the right or left button. Press both buttons to confirm each letter.' # <bold>Word #1</bold> step2: 'Select the first letters of Word #1 by pressing the right or left button. Press both buttons to confirm each letter.' # <bold>Word #1</bold>
step3: 'Select Word #1 from the suggested words. Press both buttons to continue.' # <bold>Word #1</bold> step3: 'Select Word #1 from the suggested words. Press both buttons to continue.' # <bold>Word #1</bold>
step4: Repeat the process until the last word. step4: Repeat the process until the last word.
blue: ledgerBlue:
step1: Select the length of your recovery phrase. step1: Select the length of your recovery phrase.
step2: Type the first word of your recovery phrase. Select the word when it appears. step2: Type the first word of your recovery phrase. Select the word when it appears.
step3: Repeat the process until the last word. step3: Repeat the process until the last word.
@ -92,6 +91,7 @@ initialize:
note4: Never use a device supplied with a recovery phrase or a PIN code. note4: Never use a device supplied with a recovery phrase or a PIN code.
genuineCheck: genuineCheck:
title: Final security check title: Final security check
descNano: Your Ledger Nano S should now display Your device is now ready. Before getting started, please confirm that
descBlue: #Your Ledger Blue should now display Your device is now ready. Before getting started, please confirm that descBlue: #Your Ledger Blue should now display Your device is now ready. Before getting started, please confirm that
steps: steps:
step1: step1:
@ -102,9 +102,7 @@ genuineCheck:
step3: step3:
title: Check if your Ledger device is genuine title: Check if your Ledger device is genuine
desc: desc:
isGenuinePassed: isGenuinePassed: 'Genuine'
nano: ✓ Genuine
blue: ✓ Genuine
buttons: buttons:
genuineCheck: Genuine check genuineCheck: Genuine check
contactSupport: Ledger Support contactSupport: Ledger Support
@ -135,7 +133,7 @@ analytics:
title: Report bugs title: Report bugs
desc: Automatically send bug reports to help Ledger developers diagnose issues and improve Ledger Live performance. desc: Automatically send bug reports to help Ledger developers diagnose issues and improve Ledger Live performance.
finish: finish:
title: Ready for launch! title: 'Ready for launch!'
desc: The value of crypto assets can go up or down. Balances shown in your portfolio may involve double conversions and are for indicative purposes only! desc: The value of crypto assets can go up or down. Balances shown in your portfolio may involve double conversions and are for indicative purposes only!
openAppButton: Launch openAppButton: Launch
followUsLabel: followUsLabel:

Loading…
Cancel
Save