Browse Source

pixel push from wording sessions

master
Gaëtan Renaudeau 7 years ago
parent
commit
c9726a4304
  1. 3
      src/components/DashboardPage/EmptyState.js
  2. 1
      src/components/Onboarding/helperComponents.js
  3. 11
      src/components/Onboarding/steps/Finish.js
  4. 17
      src/components/modals/AddAccounts/steps/03-step-import.js
  5. 4
      src/config/cryptocurrencies.js
  6. 11
      static/i18n/en/app.yml
  7. 40
      static/i18n/en/onboarding.yml

3
src/components/DashboardPage/EmptyState.js

@ -53,7 +53,7 @@ class EmptyState extends PureComponent<Props, *> {
</Button> </Button>
<Button <Button
padded padded
primary outline
style={{ minWidth: 120 }} style={{ minWidth: 120 }}
onClick={() => openModal(MODAL_ADD_ACCOUNTS)} onClick={() => openModal(MODAL_ADD_ACCOUNTS)}
> >
@ -79,6 +79,7 @@ export const Description = styled(Box).attrs({
})` })`
margin: 10px auto 25px; margin: 10px auto 25px;
display: block; display: block;
text-align: center;
` `
export default compose( export default compose(
connect( connect(

1
src/components/Onboarding/helperComponents.js

@ -97,6 +97,7 @@ export function DisclaimerBox({ disclaimerNotes, ...p }: { disclaimerNotes: any
) )
} }
// Not enough styled as a warning
const DisclaimerBoxContainer = styled(Box).attrs({ const DisclaimerBoxContainer = styled(Box).attrs({
shrink: 1, shrink: 1,
grow: true, grow: true,

11
src/components/Onboarding/steps/Finish.js

@ -58,15 +58,14 @@ export default (props: StepProps) => {
<Box color="positiveGreen"> <Box color="positiveGreen">
<IconCheckCircle size={44} /> <IconCheckCircle size={44} />
</Box> </Box>
<Box pt={5} align="center" mb={5}> <Box pt={5} align="center">
<Title>{t('onboarding:finish.title')}</Title> <Title>{t('onboarding:finish.title')}</Title>
<Description>{t('onboarding:finish.desc')}</Description> <Description>{t('onboarding:finish.desc')}</Description>
</Box> </Box>
<Button primary padded onClick={() => finish()}> <Box p={5}>
{t('onboarding:finish.openAppButton')} <Button primary padded onClick={() => finish()}>
</Button> {t('onboarding:finish.openAppButton')}
<Box alignItems="center" mt={7}> </Button>
<FollowUsDesc>{t('onboarding:finish.followUsLabel')}</FollowUsDesc>
</Box> </Box>
<Box horizontal mt={3} flow={5} color="grey"> <Box horizontal mt={3} flow={5} color="grey">
{socialMedia.map(socMed => <SocialMediaBox key={socMed.key} socMed={socMed} />)} {socialMedia.map(socMed => <SocialMediaBox key={socMed.key} socMed={socMed} />)}

17
src/components/modals/AddAccounts/steps/03-step-import.js

@ -257,23 +257,14 @@ export const StepImportFooter = ({
return account && account.operations.length > 0 return account && account.operations.length > 0
}) })
const addedAccountsCount = checkedAccountsIds.filter(id => { const count = checkedAccountsIds.length
const account = scannedAccounts.find(acc => acc.id === id)
return account && account.operations.length > 0
}).length
const ctaWording = const ctaWording =
scanStatus === 'scanning' scanStatus === 'scanning'
? t('app:common.sync.syncing') ? t('app:common.sync.syncing')
: willCreateAccount && willAddAccounts : willCreateAccount || willAddAccounts
? `${t('app:addAccounts.cta.create')} / ${t('app:addAccounts.cta.import', { ? t('app:addAccounts.cta.add', { count })
count: addedAccountsCount, : t('app:common.close')
})}`
: willCreateAccount
? t('app:addAccounts.cta.create')
: willAddAccounts
? t('app:addAccounts.cta.import', { count: addedAccountsCount })
: t('app:common.close')
const willClose = !willCreateAccount && !willAddAccounts const willClose = !willCreateAccount && !willAddAccounts
const onClick = willClose const onClick = willClose

4
src/config/cryptocurrencies.js

@ -31,5 +31,7 @@ const supported: CryptoCurrencyIds[] = [
] ]
export const listCryptoCurrencies = memoize((withDevCrypto?: boolean) => export const listCryptoCurrencies = memoize((withDevCrypto?: boolean) =>
listCC(withDevCrypto).filter(c => supported.includes(c.id)), listCC(withDevCrypto)
.filter(c => supported.includes(c.id))
.sort((a, b) => a.name.localeCompare(b.name)),
) )

11
static/i18n/en/app.yml

@ -125,8 +125,8 @@ emptyState:
sidebar: sidebar:
text: Press the + button to add an account to your portfolio. text: Press the + button to add an account to your portfolio.
dashboard: dashboard:
title: 'Let’s set up your portfolio!' title: 'Add accounts to your portfolio'
desc: Open the Manager to install apps on your device or add accounts if your device already has apps installed. desc: Your portfolio has no accounts the first time Ledger Live is launched. Open the Manager to install apps on your Ledger device before you start adding accounts to your portfolio.
buttons: buttons:
addAccount: Add accounts addAccount: Add accounts
installApp: Open Manager installApp: Open Manager
@ -142,7 +142,7 @@ genuinecheck:
addAccounts: addAccounts:
title: Add accounts title: Add accounts
breadcrumb: breadcrumb:
informations: Choose asset informations: Crypto asset
connectDevice: Connect device connectDevice: Connect device
import: Select accounts import: Select accounts
finish: Confirmation finish: Confirmation
@ -162,9 +162,8 @@ addAccounts:
noAccountToCreate: No {{currencyName}} account was found to create. noAccountToCreate: No {{currencyName}} account was found to create.
somethingWentWrong: Something went wrong during synchronization, please try again. somethingWentWrong: Something went wrong during synchronization, please try again.
cta: cta:
create: 'Add account' add: 'Add account'
import: 'Add account' # Remove add_plural: 'Add accounts'
import_plural: 'Add accounts'
operationDetails: operationDetails:
title: Operation details title: Operation details
account: Account account: Account

40
static/i18n/en/onboarding.yml

@ -1,8 +1,8 @@
breadcrumb: breadcrumb:
selectDevice: Select device selectDevice: Select device
selectPIN: Choose PIN selectPIN: PIN code
writeSeed: Recovery phrase writeSeed: Recovery phrase
genuineCheck: Security check genuineCheck: Security checklist
setPassword: Encrypt data setPassword: Encrypt data
analytics: Analytics analytics: Analytics
start: start:
@ -10,6 +10,7 @@ start:
startBtn: Get started startBtn: Get started
init: init:
title: Get started with your Ledger device title: Get started with your Ledger device
desc: The unified crypto portfolio, backed by the security of your Ledger device.
newDevice: newDevice:
title: Initialize a new Ledger device title: Initialize a new Ledger device
restoreDevice: restoreDevice:
@ -38,13 +39,13 @@ selectPIN:
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.
initialize: initialize:
title: Start initialization - Choose your PIN code title: 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 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 followed by the checkmark (✓).'
blue: blue:
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.
@ -56,7 +57,7 @@ selectPIN:
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 followed by 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>.
@ -87,14 +88,14 @@ writeSeed:
step3: Repeat the process until the last word. step3: Repeat the process until the last word.
disclaimer: disclaimer:
note1: Carefully secure your 24-word recovery phrase out of sight. note1: Carefully secure your 24-word recovery phrase out of sight.
note2: Ledger does not keep any backup of your recovery phrase. note2: Make sure you are the sole holder of your recovery phrase.
note3: Make sure you are the sole holder of your recovery phrase. note3: Ledger does not keep any backup of your recovery phrase.
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: Security checklist
descNano: Your Ledger Nano S should now display Your device is now ready. Before getting started, please confirm that descNano: Before getting started, please confirm
descBlue: Your Ledger Blue should now display Your device is now ready. Before getting started, please confirm that descBlue: Before getting started, please confirm
descRestore: Before getting started, please confirm that descRestore: Before getting started, please confirm
step1: step1:
title: Did you choose your PIN code by yourself? title: Did you choose your PIN code by yourself?
step2: step2:
@ -103,18 +104,18 @@ genuineCheck:
title: Do you have a genuine Ledger device? title: Do you have a genuine Ledger device?
isGenuinePassed: Your device is genuine isGenuinePassed: Your device is genuine
buttons: buttons:
genuineCheck: Genuine check genuineCheck: Check now
contactSupport: Ledger Support contactSupport: Ledger Support
errorPage: errorPage:
ledgerNano: ledgerNano:
title: Oops, something went wrong... title: Oops, something went wrong...
desc: Go back to the security check or request Ledger Support assistance. desc: Go back to the security checklist or request Ledger Support assistance.
ledgerBlue: ledgerBlue:
title: Oops, something went wrong... title: Oops, something went wrong...
desc: Go back to the security check or request Ledger Support assistance. desc: Go back to the security checklist or request Ledger Support assistance.
setPassword: setPassword:
title: Encrypt Ledger Live data title: Encrypt Ledger Live data
desc: Enhance your privacy. Set a password to encrypt Ledger Live data stored on your computer, including account names, balances, transactions and public addresses. desc: Set a password to encrypt Ledger Live data stored on your computer, including account names, balances, transactions and public addresses.
disclaimer: disclaimer:
note1: Make sure to remember your password. Do not share it. note1: Make sure to remember your password. Do not share it.
note2: Losing your password requires resetting Ledger Live and re-adding accounts. note2: Losing your password requires resetting Ledger Live and re-adding accounts.
@ -130,9 +131,8 @@ analytics:
desc: Enable analytics of anonymous data to help Ledger improve the user experience. This includes the operating system, language, firmware versions and the number of added accounts. desc: Enable analytics of anonymous data to help Ledger improve the user experience. This includes the operating system, language, firmware versions and the number of added accounts.
sentryLogs: sentryLogs:
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 reports to help Ledger fix bugs.
finish: finish:
title: Welcome to Ledger Live title: Your device is ready!
desc: The unified crypto portfolio, backed by the security of your Ledger device. desc: Proceed to your porfolio and start adding your accounts...
openAppButton: Launch openAppButton: Open Ledger Live
followUsLabel: Follow us

Loading…
Cancel
Save