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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user