feat: add multilingual support for print preview empty state
Add i18n support for empty state when no barcode data is found:
**English translations:**
- "No Barcode Data Found"
- "No bills with 2D barcodes found for {yearMonth}"
**Croatian translations:**
- "Nema Podataka o Barkodovima"
- "Nema računa s 2D barkodovima za {yearMonth}"
**Implementation:**
- Add translation keys to messages/en.json and messages/hr.json
- Update server component to fetch empty state translations
- Use proper next-intl parameter passing for yearMonth variable
- Replace hardcoded English text with localized translations
Empty state now displays correct language based on URL locale:
- /en/print/2025/01 → English empty state message
- /hr/print/2025/01 → Croatian empty state message
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -70,7 +70,9 @@
|
||||
"print-footer": "Generirano {date} • Evidencija Režija Sustav Ispisa",
|
||||
"table-header-index": "#",
|
||||
"table-header-bill-info": "Informacije o Računu",
|
||||
"table-header-barcode": "2D Barkod"
|
||||
"table-header-barcode": "2D Barkod",
|
||||
"empty-state-title": "Nema Podataka o Barkodovima",
|
||||
"empty-state-message": "Nema računa s 2D barkodovima za {yearMonth}"
|
||||
}
|
||||
},
|
||||
"bill-delete-form": {
|
||||
|
||||
Reference in New Issue
Block a user