ProductBarcode: properly use of language system in frontend/Scanner.vue

This commit is contained in:
Crumb Owl
2025-07-01 12:32:13 +02:00
parent dd94fd43ee
commit 09f29d82f4
2 changed files with 5 additions and 3 deletions

View File

@@ -21,13 +21,13 @@
<div class="flex">
<MdiBarcode class="text-default mr-2" />
<span class="flex-1 text-center text-sm font-medium">
{{ detectedBarcodeType }} product barcode detected: <strong>{{ detectedBarcode }}</strong>
{{ detectedBarcodeType }} {{ $t("scanner.barcode_detected_message") }}: <strong>{{ detectedBarcode }}</strong>
</span>
</div>
<ButtonGroup>
<Button :disabled="loading" type="submit" @click="handleButtonClick">
Fetchdata and create
{{ $t("scanner.barcode_fetch_data") }}
</Button>
</ButtonGroup>
</div>

View File

@@ -565,7 +565,9 @@
"permission_denied": "Camera permission denied, please allow access to the camera in your browser settings",
"select_video_source": "Pick a video source",
"title": "Scanner",
"unsupported": "Media Stream API is not supported without HTTPS"
"unsupported": "Media Stream API is not supported without HTTPS",
"barcode_detected_message": "product barcode detected",
"barcode_fetch_data": "Fetch product data"
},
"tools": {
"actions": "Inventory Actions",