Skip to content

Commit

Permalink
Update ledger translations
Browse files Browse the repository at this point in the history
- update usb and ble instructions
- change opening Ledger through usb to more general text
  • Loading branch information
lubej committed Apr 25, 2024
1 parent 3ed39ed commit 7ef6940
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/app/components/ImportAccountsStepFormatter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const ImportAccountsStepFormatter = memo((props: Props) => {

const stepMap: { [code in Step]: string } = {
[Step.Idle]: t('ledger.steps.idle', 'Idle'),
[Step.AccessingLedger]: t('ledger.steps.openingUsb', 'Opening Ledger through USB'),
[Step.AccessingLedger]: t('ledger.steps.accessingLedger', 'Connecting with Ledger device'),
[Step.LoadingAccounts]: t('ledger.steps.loadingAccounts', 'Loading account details'),
[Step.LoadingBalances]: t('ledger.steps.loadingBalances', 'Loading balance details'),
[Step.LoadingBleDevices]: t('ledger.steps.loadingBluetoothDevices', 'Loading bluetooth devices'),
Expand Down
6 changes: 3 additions & 3 deletions src/app/pages/OpenWalletPage/Features/FromBleLedger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ export function FromBleLedger() {
<li>
{t(
'ledger.instructionSteps.connectBluetoothLedger',
'Connect your Bluetooth Ledger device to the device',
'Connect your Ledger to this device via Bluetooth',
)}
</li>
<li>
{t('ledger.instructionSteps.deviceIsPaired', 'Make sure your Ledger is paired with the device')}
{t('ledger.instructionSteps.deviceIsPaired', 'Make sure your Ledger is paired with this device')}
</li>
<li>{t('ledger.instructionSteps.closeLedgerLive', 'Close Ledger Live app on the device')}</li>
<li>{t('ledger.instructionSteps.openOasisApp', 'Open the Oasis App on your Ledger device')}</li>
<li>{t('ledger.instructionSteps.openOasisApp', 'Open the Oasis app on your Ledger')}</li>
</ol>
<Box direction="row" margin={{ top: 'medium' }}>
<Button
Expand Down
8 changes: 3 additions & 5 deletions src/app/pages/OpenWalletPage/Features/FromUsbLedger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ export function FromUsbLedger() {
{t('ledger.instructionSteps.header', 'Steps:')}
</Heading>
<ol>
<li>
{t('ledger.instructionSteps.connectUsbLedger', 'Connect your USB Ledger device to the device')}
</li>
<li>{t('ledger.instructionSteps.closeLedgerLive', 'Close Ledger Live app on the device')}</li>
<li>{t('ledger.instructionSteps.openOasisApp', 'Open the Oasis App on your Ledger device')}</li>
<li>{t('ledger.instructionSteps.connectUsbLedger', 'Connect your Ledger to this device via USB')}</li>
<li>{t('ledger.instructionSteps.closeLedgerLive', 'Close the Ledger Live app on your computer')}</li>
<li>{t('ledger.instructionSteps.openOasisApp', 'Open the Oasis app on your Ledger')}</li>
</ol>
<Box direction="row" margin={{ top: 'medium' }}>
<Button
Expand Down
16 changes: 12 additions & 4 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,18 @@
},
"instructionSteps": {
"closeLedgerLive": "Close Ledger Live app on the computer",
"connectLedger": "Connect your Ledger device to the computer",
"connectBluetoothLedger": "Connect your Ledger to this device via Bluetooth",
"connectUsbLedger": "Connect your USB Ledger device to the computer",
"deviceIsPaired": "Make sure your Ledger is paired with this device",
"header": "Steps:",
"openOasisApp": "Open the Oasis App on your Ledger device"
},
"steps": {
"accessingLedger": "Connecting with Ledger device",
"idle": "Idle",
"loadingAccounts": "Loading account details",
"loadingBalances": "Loading balance details",
"loadingBluetoothDevices": "Loading bluetooth devices",
"openingUsb": "Opening Ledger through USB"
"loadingBluetoothDevices": "Loading bluetooth devices"
}
},
"menu": {
Expand Down Expand Up @@ -271,15 +273,21 @@
},
"header": "How do you want to open your wallet?",
"importAccounts": {
"NoBLEDevicesFound": "No Bluetooth devices found",
"accountCounter": "{{count}} accounts selected",
"accountCounter_one": "One account selected",
"accountCounter_plural": "{{count}} accounts selected",
"accountCounter_zero": "No account selected",
"bluetoothLedger": "Bluetooth Ledger",
"connectDeviceHeader": "How do you want to connect your Ledger device?",
"next": "Next",
"openWallets": "Open",
"pageNumber": "Page {{pageNum}} of {{totalPages}}",
"prev": "Prev",
"selectWallets": "Select accounts to open"
"selectDevice": "Select device",
"selectLedgerDevice": "Select Ledger device",
"selectWallets": "Select accounts to open",
"usbLedger": "USB Ledger"
},
"ledger": {
"header": "Open from Ledger device"
Expand Down

0 comments on commit 7ef6940

Please sign in to comment.