From 09f29d82f47f126a6dcd9c804809fa40df3b9c85 Mon Sep 17 00:00:00 2001 From: Crumb Owl Date: Tue, 1 Jul 2025 12:32:13 +0200 Subject: [PATCH] ProductBarcode: properly use of language system in frontend/Scanner.vue --- frontend/components/App/ScannerModal.vue | 4 ++-- frontend/locales/en.json | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/components/App/ScannerModal.vue b/frontend/components/App/ScannerModal.vue index a75bd52a..7c899d5c 100644 --- a/frontend/components/App/ScannerModal.vue +++ b/frontend/components/App/ScannerModal.vue @@ -21,13 +21,13 @@
- {{ detectedBarcodeType }} product barcode detected: {{ detectedBarcode }} + {{ detectedBarcodeType }} {{ $t("scanner.barcode_detected_message") }}: {{ detectedBarcode }}
diff --git a/frontend/locales/en.json b/frontend/locales/en.json index 56a12c97..d934530b 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -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",