fix(i18n): translate antiwaste title in IT/DE + use quantity validation

- translations: antiwaste.title = 'Rapporto Anti-Spreco' (IT), 'Anti-Verschwendungs-Bericht' (DE)
- translations: add use.error_exceeds_stock in IT/EN/DE
- submitUse(): block submit if qty > available at selected location + shake animation
- adjustUseQty(): cap '+' button at max available at selected location (incl. sub-unit mode)
- style.css: add @keyframes inputShake + .input-shake class

Bump app.js cache buster to v=20260504c
This commit is contained in:
dadaloop82
2026-05-04 16:56:37 +00:00
parent 874ae90afa
commit bff22d43b4
6 changed files with 51 additions and 12 deletions
+3 -2
View File
@@ -242,7 +242,8 @@
"toast_bring": "🛒 Produkt aufgebraucht → zu Bring! hinzugefügt",
"toast_opened_finished": "🔓 Geöffnete Packung von {name} aufgebraucht!",
"disambiguation_hint": "Was meinst du mit \"alles aufgebraucht\"?",
"disambiguation_all": "🗑️ ALLES aufgebraucht ({qty})"
"disambiguation_all": "🗑️ ALLES verbraucht ({qty})",
"error_exceeds_stock": "⚠️ Du kannst nicht mehr verwenden als du verfügbar hast!"
},
"product": {
"title_new": "Neues Produkt",
@@ -691,7 +692,7 @@
"item_added": "{name} hinzugefügt"
},
"antiwaste": {
"title": "🌱 Anti-Waste Report",
"title": "🌱 Anti-Verschwendungs-Bericht",
"grade_label": "Note",
"you": "Du",
"avg_label": "Ø",
+2 -1
View File
@@ -241,7 +241,8 @@
"toast_bring": "🛒 Product finished → added to Bring!",
"toast_opened_finished": "🔓 Opened package of {name} finished!",
"disambiguation_hint": "What do you mean by \"all done\"?",
"disambiguation_all": "🗑️ Finish EVERYTHING ({qty})"
"disambiguation_all": "🗑️ Finish EVERYTHING ({qty})",
"error_exceeds_stock": "⚠️ You cannot use more than you have available!"
},
"product": {
"title_new": "New Product",
+3 -2
View File
@@ -241,7 +241,8 @@
"toast_bring": "🛒 Prodotto finito → aggiunto a Bring!",
"toast_opened_finished": "🔓 Confezione aperta di {name} finita!",
"disambiguation_hint": "Cosa intendi con \"finito tutto\"?",
"disambiguation_all": "🗑️ Finito TUTTO ({qty})"
"disambiguation_all": "🗑️ Finito TUTTO ({qty})",
"error_exceeds_stock": "⚠️ Non puoi usare più di quanto hai disponibile!"
},
"product": {
"title_new": "Nuovo Prodotto",
@@ -690,7 +691,7 @@
"item_added": "{name} aggiunto"
},
"antiwaste": {
"title": "🌱 Anti-Waste Report",
"title": "🌱 Rapporto Anti-Spreco",
"grade_label": "Voto",
"you": "Tu",
"avg_label": "Media",