Skip to content

Commit

Permalink
fix: scan qr code translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ifaouibadi committed Jul 4, 2023
1 parent 9ca4aa0 commit 31b6774
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/popup/components/Modals/AirGapSignTransaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ export default defineComponent({
async function scanSignedTransaction() {
const scanResult: IACMessageDefinitionObjectV3[] = await openModal(MODAL_READ_QR_CODE, {
heading: root.$t('modals.importAirGapAccount.scanTitle'),
title: root.$t('modals.importAirGapAccount.scanDescription'),
heading: root.$t('modals.scanAirGapTx.heading'),
title: root.$t('modals.scanAirGapTx.title'),
icon: 'critical',
});
Expand Down
3 changes: 3 additions & 0 deletions src/popup/components/Modals/QrCodeReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<div class="top-icon-wrapper">
<IconBoxed :icon="QrScanIcon" />
</div>
<div v-if="heading" class="heading">
{{ heading }}
</div>
<span v-if="cameraAllowed">{{ title }}</span>
<span v-else>
{{ $t('modals.qrCodeReader.grantPermission') }}
Expand Down
2 changes: 1 addition & 1 deletion src/popup/components/TransferRawTxReview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</DetailsItem>

<DetailsItem
:label="$t('pages.tipPage.amountLabel')"
:label="$t('common.amount')"
class="details-item"
>
<template #value>
Expand Down
2 changes: 1 addition & 1 deletion src/popup/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
"cameraNotAllowedFirst": "You need to grant your device camera access permission to scan QR code.",
"cameraNotAllowedSecond": "Please allow camera access in your browser settings and try again.",
"settings": "Settings",
"qrCodeHasMultipleFragments": "This transaction consists for multiple QR codes. Keep your camera on the changing QRs and wait until all codes are scanned:"
"qrCodeHasMultipleFragments": "This transaction consists of multiple QR codes. Keep your camera on the changing QRs and wait until all codes are scanned:"
},
"name-pointers-help": {
"title": "Name pointers",
Expand Down

0 comments on commit 31b6774

Please sign in to comment.