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 authored and martinkaintas committed Jun 20, 2024
1 parent a460c1c commit bcbc48f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/popup/components/Modals/AirGapSignTransaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ import {
onMounted,
PropType,
ref,
} from '@vue/composition-api';
} from 'vue';
import { IACMessageType } from '@airgap/serializer';
import type {
IACMessageDefinitionObjectV3,
TransactionSignResponse,
} from '@airgap/serializer';
import { useGetter } from '../../../composables/vuex';
import { useAccounts, useModals, useAirGap } from '../../../composables';
import type { INetwork } from '../../../types';
import { MODAL_READ_QR_CODE } from '../../utils';
import type { INetwork } from '@/types';
import { MODAL_READ_QR_CODE } from '@/constants';
import { useAccounts, useModals, useAirGap } from '@/composables';
import Modal from '../Modal.vue';
import BtnMain from '../buttons/BtnMain.vue';
Expand All @@ -71,10 +71,10 @@ export default defineComponent({
resolve: { type: Function as PropType<(txRaw: string) => void>, required: true },
reject: { type: Function as PropType<() => void>, required: true },
},
setup(props, { root }) {
setup(props) {
const fragments = ref();
const { openModal } = useModals();
const { activeAccount } = useAccounts({ store: root.$store });
const { activeAccount } = useAccounts();
const activeNetwork = useGetter<INetwork>('activeNetwork');
const { generateTransactionURDataFragments } = useAirGap();
Expand All @@ -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: tg('modals.scanAirGapTx.heading'),
title: tg('modals.scanAirGapTx.title'),
icon: 'critical',
});
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 @@ -372,7 +372,7 @@
"noWebcamSubtitle": "Please enable your device camera and check again if it is functioning properly.",
"subtitle": "Allow Superhero wallet to access your camera in order to scan QR codes.",
"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
2 changes: 1 addition & 1 deletion src/protocols/aeternity/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

0 comments on commit bcbc48f

Please sign in to comment.