A continuation of HomeBox the inventory and organization system built for the Home User
ProductBarcode: properly use of language system in frontend/Scanner.vue
Crumb Owl09f29d82f47f
diff --git a/frontend/components/App/ScannerModal.vue b/frontend/components/App/ScannerModal.vueindex a75bd52a..7c899d5c 100644--- a/frontend/components/App/ScannerModal.vue+++ b/frontend/components/App/ScannerModal.vue@@ -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>diff --git a/frontend/locales/en.json b/frontend/locales/en.jsonindex 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",