Browse Source

Add missing translation for connectDevice.desc + wording polish

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
b2ff6c2aa9
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 6
      src/components/modals/AddAccounts/steps/02-step-connect-device.js
  2. 3
      static/i18n/en/app.json

6
src/components/modals/AddAccounts/steps/02-step-connect-device.js

@ -15,6 +15,8 @@ import type { StepProps } from '../index'
function StepConnectDevice({ t, currency, device, setAppOpened }: StepProps) { function StepConnectDevice({ t, currency, device, setAppOpened }: StepProps) {
invariant(currency, 'No crypto asset given') invariant(currency, 'No crypto asset given')
const currencyName = `${currency.name} (${currency.ticker})`
return ( return (
<Fragment> <Fragment>
<TrackPage category="AddAccounts" name="Step2" /> <TrackPage category="AddAccounts" name="Step2" />
@ -23,9 +25,7 @@ function StepConnectDevice({ t, currency, device, setAppOpened }: StepProps) {
<Box ff="Open Sans" fontSize={4} color="dark" textAlign="center" style={{ width: 370 }}> <Box ff="Open Sans" fontSize={4} color="dark" textAlign="center" style={{ width: 370 }}>
<Trans i18nKey="addAccounts.connectDevice.desc" parent="div"> <Trans i18nKey="addAccounts.connectDevice.desc" parent="div">
{`Follow the steps below to add `} {`Follow the steps below to add `}
<strong style={{ fontWeight: 'bold' }}>{`${currency.name} (${ <strong style={{ fontWeight: 'bold' }}>{currencyName}</strong>
currency.ticker
})`}</strong>
{` accounts from your Ledger device.`} {` accounts from your Ledger device.`}
</Trans> </Trans>
</Box> </Box>

3
static/i18n/en/app.json

@ -186,6 +186,9 @@
"import": "Accounts", "import": "Accounts",
"finish": "Confirmation" "finish": "Confirmation"
}, },
"connectDevice": {
"desc": "Follow the steps below to add <1><0>{{currencyName}}</0></1> accounts"
},
"accountAlreadyImportedSubtitle": "Accounts already in portfolio ({{count}})", "accountAlreadyImportedSubtitle": "Accounts already in portfolio ({{count}})",
"accountToImportSubtitle": "Add existing account", "accountToImportSubtitle": "Add existing account",
"accountToImportSubtitle_plural": "Add existing accounts", "accountToImportSubtitle_plural": "Add existing accounts",

Loading…
Cancel
Save