feat(waiter): English-first texts, part c: shift, log, chat, offline, notifications; language switch; guard (platform-v2 step 4.5c)

- Shift overview, order log, chat list / thread, offline + server search +
  rediscovery screens, notifications, the refused-lines sheet and the offline queue's
  reasons become keys; times and dates through useFormat() in the venue's clock.
- User menu: the other language(s) (data-testid menu-language-<lng>), saved to the
  person's profile (PATCH /api/auth/me) and the bootstrap reloaded (D-12).
- tests/no-greek.test.mjs: no Greek letter in waiter_pwa/src (the one Greek word the
  app recognises in staff messages is a \u escape).
- e2e: the test venue is English: waiter / browser / android use the English texts;
  waiter.mjs +3 (English by default, switch to Greek at once and saved, after reload);
  android bundle checks print what they saw when they fail.
- Pack README: the waiter texts rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 04:31:48 +02:00
co-authored by Claude Opus 5.5
parent 2c4f78af47
commit f8d91e7fae
16 changed files with 493 additions and 201 deletions
+112
View File
@@ -657,5 +657,117 @@
"summaryModal": {
"edit": "Επεξεργασία",
"title": "Επισκόπηση Παραγγελίας"
},
"log": {
"printProblem": "Πρόβλημα Εκτύπωσης",
"cancelPrint": "Ακύρωση Εκτύπωσης",
"ok": "Επιτυχής",
"failedF": "Αποτυχημένη",
"range": "Εύρος ημερομηνίας/ώρας",
"from": "Από",
"to": "Έως",
"clearDates": "Καθαρισμός ημερομηνίας",
"fiscal": "Φορολογική εκτύπωση",
"print": "Εκτύπωση",
"holdForOptions": "Κρατήστε πατημένο για επιλογές",
"titleShort": "Αρχ. Παραγγ.",
"searchPlaceholder": "Τραπέζι, #παραγγελία, αντικείμενο…",
"orderLine": "Παραγγελία #{{id}} · {{table}} · {{time}}",
"retries_one": "{{count}} επανάληψη",
"retries_other": "{{count}} επαναλήψεις",
"printNow": "Εκτύπωση Τώρα",
"pending": "Εκκρεμεί…",
"failed": "Αποτυχία",
"pendingRetries": "Εκκρεμεί ({{count}} επαν.)",
"itemsShort": "{{count}} αντ.",
"printProblems_one": "{{count}} παραγγελία με πρόβλημα εκτύπωσης",
"printProblems_other": "{{count}} παραγγελίες με πρόβλημα εκτύπωσης",
"printFailed": "Αποτυχημένη εκτύπωση",
"printOk": "Επιτυχής εκτύπωση",
"noneFound": "Δεν βρέθηκαν παραγγελίες",
"noneThisShift": "Δεν υπάρχουν παραγγελίες σε αυτή τη βάρδια",
"detailedView": "Λεπτομερής προβολή",
"compactView": "Συμπαγής προβολή",
"cancel": "Ακύρωση"
},
"shiftPage": {
"none": "Δεν υπάρχει ενεργή βάρδια",
"noneSub": "Ξεκινήστε βάρδια για να δείτε στατιστικά.",
"onBreak": "Σε διάλειμμα",
"start": "Έναρξη",
"worked": "Ώρες Εργασίας",
"startCash": "Αρχ. Μετρητά",
"collected": "Είσπραξη",
"toHandIn": "Παραδ. Ποσό",
"toHandInSub": "Αρχ. + Είσπραξη",
"openTables": "Ανοιχτά Τραπέζια",
"openTablesSub": "τρέχουσες παραγγελίες",
"items": "Είδη (ανοιχτά)",
"breaks": "Διαλείμματα",
"perHour": "Ανά Ώρα",
"itemsShort": "Είδη",
"now": "Τώρα",
"breakSince": "από {{time}} · {{duration}} μέχρι τώρα",
"breaksSub": "{{duration}} διαλείμματα",
"totalSub": "{{duration}} σύνολο",
"breaksCount": "Διαλείμματα ({{count}})"
},
"chat": {
"group": "Ομάδα",
"unknown": "Άγνωστος",
"deleted": "Το μήνυμα διαγράφηκε",
"noMessages": "Δεν υπάρχουν μηνύματα",
"usersFailed": "Αποτυχία φόρτωσης χρηστών",
"createFailed": "Σφάλμα δημιουργίας συνομιλίας",
"groupFailed": "Σφάλμα δημιουργίας ομάδας",
"new": "Νέα Συνομιλία",
"newGroup": "Νέα Ομάδα",
"noStaff": "Δεν υπάρχει άλλο προσωπικό",
"groupName": "Όνομα Ομάδας",
"groupNamePlaceholder": "π.χ. Βραδινή βάρδια",
"next": "Επόμενο",
"pickMembers": "Επιλογή Μελών",
"startHint": "Πατήστε «Νέα Συνομιλία» για να ξεκινήσετε μια συζήτηση.",
"now": "τώρα",
"yesterday": "χθες",
"creating": "Δημιουργία…",
"createGroup": "Δημιουργία Ομάδας",
"createGroupCount": "Δημιουργία Ομάδας ({{count}})",
"groupLabel": "Ομάδα:",
"leaveTitle": "Αποχώρηση από ομάδα;",
"leaveBody": "Δεν θα λαμβάνετε πλέον μηνύματα από αυτή την ομάδα.",
"leave": "Αποχώρηση",
"conversation": "Συνομιλία",
"loadingOlder": "Φόρτωση παλαιότερων…",
"placeholder": "Γράψτε μήνυμα…",
"today": "Σήμερα",
"yesterdayCap": "Χθες",
"members_one": "{{count}} μέλος",
"members_other": "{{count}} μέλη",
"emptyThread": "Δεν υπάρχουν μηνύματα ακόμα.",
"sayHi": "Πείτε γεια!"
},
"offline": {
"title": "Δεν υπάρχει σύνδεση",
"body": "Δεν είναι δυνατή η επικοινωνία με το σύστημα. Ελέγξτε τη σύνδεση WiFi.",
"notFound": "Ο server δεν βρέθηκε στο δίκτυο. Ελέγξτε ότι είναι αναμμένος, ή σαρώστε ξανά το QR από τον διαχειριστή.",
"changeVenue": "Αλλαγή καταστήματος",
"searching": "Αναζήτηση… {{done}}/{{total}}",
"search": "Αναζήτηση server στο δίκτυο",
"moved": "Ο server άλλαξε διεύθυνση",
"reconnecting": "Επανασύνδεση…"
},
"refused": {
"title": "Δεν στάλθηκαν",
"body": "Τα παρακάτω πάρθηκαν χωρίς σύνδεση και ο server δεν τα δέχτηκε. Ελέγξτε τα τραπέζια.",
"ok": "Το είδα",
"oldFormat": "Παλιά μορφή παραγγελίας: προσθέστε το ξανά",
"notAccepted": "Ο server δεν το δέχτηκε"
},
"notify": {
"tables_one": "Τραπέζι: {{tables}}",
"tables_other": "Τραπέζια: {{tables}}",
"more_one": "+{{count}} ακόμα μήνυμα",
"more_other": "+{{count}} ακόμα μηνύματα"
}
}
+112
View File
@@ -657,5 +657,117 @@
"summaryModal": {
"edit": "Edit",
"title": "Order summary"
},
"log": {
"printProblem": "Print problem",
"cancelPrint": "Cancel printing",
"ok": "Succeeded",
"failedF": "Failed",
"range": "Date / time range",
"from": "From",
"to": "To",
"clearDates": "Clear the dates",
"fiscal": "Fiscal receipt",
"print": "Printing",
"holdForOptions": "Press and hold for options",
"titleShort": "Order log",
"searchPlaceholder": "Table, #order, item…",
"orderLine": "Order #{{id}} · {{table}} · {{time}}",
"retries_one": "{{count}} retry",
"retries_other": "{{count}} retries",
"printNow": "Print now",
"pending": "Pending…",
"failed": "Failed",
"pendingRetries": "Pending ({{count}} retries)",
"itemsShort": "{{count}} it.",
"printProblems_one": "{{count}} order with a print problem",
"printProblems_other": "{{count}} orders with a print problem",
"printFailed": "Printing failed",
"printOk": "Printed",
"noneFound": "No orders found",
"noneThisShift": "No orders in this shift",
"detailedView": "Detailed view",
"compactView": "Compact view",
"cancel": "Cancel"
},
"shiftPage": {
"none": "No active shift",
"noneSub": "Start a shift to see the numbers.",
"onBreak": "On a break",
"start": "Started",
"worked": "Hours worked",
"startCash": "Starting cash",
"collected": "Collected",
"toHandIn": "To hand in",
"toHandInSub": "Start + collected",
"openTables": "Open tables",
"openTablesSub": "current orders",
"items": "Items (open)",
"breaks": "Breaks",
"perHour": "Per hour",
"itemsShort": "Items",
"now": "Now",
"breakSince": "since {{time}} · {{duration}} so far",
"breaksSub": "{{duration}} breaks",
"totalSub": "{{duration}} in all",
"breaksCount": "Breaks ({{count}})"
},
"chat": {
"group": "Group",
"unknown": "Unknown",
"deleted": "The message was deleted",
"noMessages": "No messages",
"usersFailed": "Couldn't load the staff",
"createFailed": "Couldn't start the conversation",
"groupFailed": "Couldn't create the group",
"new": "New conversation",
"newGroup": "New group",
"noStaff": "No other staff",
"groupName": "Group name",
"groupNamePlaceholder": "e.g. Evening shift",
"next": "Next",
"pickMembers": "Choose members",
"startHint": "Tap «New conversation» to start one.",
"now": "now",
"yesterday": "yesterday",
"creating": "Creating…",
"createGroup": "Create group",
"createGroupCount": "Create group ({{count}})",
"groupLabel": "Group:",
"leaveTitle": "Leave the group?",
"leaveBody": "You won't get messages from this group any more.",
"leave": "Leave",
"conversation": "Conversation",
"loadingOlder": "Loading older messages…",
"placeholder": "Write a message…",
"today": "Today",
"yesterdayCap": "Yesterday",
"members_one": "{{count}} member",
"members_other": "{{count}} members",
"emptyThread": "No messages yet.",
"sayHi": "Say hello!"
},
"offline": {
"title": "No connection",
"body": "Can't reach the system. Check the WiFi connection.",
"notFound": "The server wasn't found on the network. Check that it's on, or scan the QR code from the manager again.",
"changeVenue": "Change venue",
"searching": "Searching… {{done}}/{{total}}",
"search": "Search the network for the server",
"moved": "The server changed address",
"reconnecting": "Reconnecting…"
},
"refused": {
"title": "Not sent",
"body": "These were taken offline and the server didn't accept them. Check the tables.",
"ok": "Got it",
"oldFormat": "Old order format: add it again",
"notAccepted": "The server didn't accept it"
},
"notify": {
"tables_one": "Table: {{tables}}",
"tables_other": "Tables: {{tables}}",
"more_one": "+{{count}} more message",
"more_other": "+{{count}} more messages"
}
}