feat(waiter): English-first texts, part a: shell, sign-in, tables, settings, venues (platform-v2 step 4.5a)

- @xenia/i18n: new `waiter` namespace (en + el); the waiter's Greek texts become keys
  with English written fresh (Greek kept as the translation).
- App gates, side drawer / nav bars / notifications, user menu, login, table list and
  cards, settings, venues + pairing errors, install dialog, lock screen, update banners,
  QR scanner, favourites setup.
- Money and times through useFormat() (venue time, the language's number format):
  table cards, quick table view, user menu, notifications.
- waiter i18n.js: tw() for code outside components (pairing errors).
- The table-list's FavoritesSetupPage `.map(t => …)` renamed so it doesn't shadow t.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 03:50:33 +02:00
co-authored by Claude Opus 5.5
parent 8e0a786bbc
commit 37155c0457
20 changed files with 1229 additions and 375 deletions
+390
View File
@@ -0,0 +1,390 @@
{
"common": {
"loading": "Loading…",
"refresh": "Refresh",
"signOut": "Sign out",
"close": "Close",
"minutesShort": "{{m}}m",
"hoursShort": "{{h}}h",
"hoursMinutesShort": "{{h}}h {{m}}m",
"change": "Change",
"retry": "Try again",
"total": "Total",
"clear": "Clear",
"ok": "OK",
"cancel": "Cancel",
"confirm": "Confirm",
"back": "Back",
"save": "Save"
},
"gate": {
"closedTitle": "The venue is closed",
"closedBody": "There's no business day open.\nAsk a manager to open the day.",
"waitingTitle": "Waiting for your shift to start",
"waitingBody": "Ask a manager to start your shift.",
"startFailed": "Couldn't start the shift",
"welcome": "Welcome, {{name}}!",
"startQuestion": "Start your shift?",
"startingCash": "Starting cash (optional)",
"starting": "Starting…",
"startShift": "Start shift"
},
"nav": {
"tables": "Tables",
"activeOrders": "Active orders",
"orders": "Orders",
"messages": "Messages",
"takeaway": "Takeaway",
"shift": "Shift",
"log": "Log",
"takeawayDelivery": "Takeaway / Delivery",
"shiftSummary": "Shift summary",
"orderLog": "Order log",
"settings": "Settings",
"installApp": "Install the app",
"chat": "Chat"
},
"shell": {
"notifications": "Notifications",
"noNotifications": "No notifications",
"notificationTables": "Table: {{tables}}",
"posSystem": "POS system",
"navigation": "Navigation"
},
"menu": {
"title": "User menu",
"endShiftConfirm": "End your shift?",
"shiftActive": "Shift active",
"since": "Since {{time}}",
"startingCash": "Starting cash: {{amount}}",
"onBreakSince": "On a break since {{time}}",
"endBreak": "End break",
"break": "Break",
"endShift": "End shift",
"askManagerToEnd": "Ask a manager to end your shift",
"venue": "Venue: {{name}}",
"lightTheme": "Light theme",
"darkTheme": "Dark theme",
"lock": "Lock",
"languageNotSaved": "Language changed on this phone, but it couldn't be saved to your profile."
},
"login": {
"onShift": "On shift",
"wrongPassword": "Wrong password",
"wrongPin": "Wrong PIN",
"tapOnly": "At this venue waiters sign in by tapping their name on the paired screens. That way of signing in doesn't work on a phone: ask a manager to change the sign-in method to PIN or password.",
"whoAreYou": "Who are you?",
"serverNotFound": "Can't find the server",
"serverNotFoundBody": "Can't connect to the venue server. A shift can't start without a connection.",
"noWaiters": "No waiters found",
"username": "Username",
"password": "Password",
"signIn": "Sign in",
"enterPin": "Enter your PIN"
},
"card": {
"freeLower": "Free",
"noItems": "No items",
"free": "FREE",
"open": "OPEN",
"mine": "MINE",
"paid": "PAID",
"partlyPaid": "PART PAID",
"waiters_one": "{{count}} waiter",
"waiters_other": "{{count}} waiters",
"allReady": "All ready to serve",
"preparingCount": "{{count}} preparing",
"readyCount": "{{count}} ready",
"more": "+{{count}} more…"
},
"tables": {
"quick": {
"paid": "Paid",
"due": "Due",
"noOrder": "No open order",
"openTable": "Open the table",
"markAllServed": "Mark all as served",
"cancelOrder": "Cancel order"
},
"filter": {
"title": "Filters",
"owner": "Assigned",
"status": "Status",
"all": "All",
"mine": "Mine",
"free": "Free",
"open": "Open",
"paid": "Paid",
"zones": "Zones",
"zonesSelected": "Zones ({{count}} selected)"
},
"offlineNoData": "Offline: nothing saved on this phone yet",
"offlineNoDataBody": "Connect to the network once so the data is saved on the phone.",
"cancelConfirmTitle": "Cancel the order?",
"cancelConfirmBody": "All active items will be cancelled and a cancellation slip printed.",
"actions": {
"flags": "Table flags",
"transfer": "Transfer",
"merge": "Merge",
"printSynopsis": "Print summary",
"assignWaiter": "Assign a waiter"
},
"status": {
"open": "Open",
"partlyPaid": "Partly paid",
"paid": "Paid",
"free": "Free"
},
"pull": {
"refreshing": "Refreshing…",
"release": "Release to refresh",
"pull": "Pull to refresh"
}
},
"orders": {
"filter": {
"title": "Order filters",
"view": "Show",
"sort": "Sort",
"mine": "Mine"
},
"none": "No orders",
"open": "Open",
"markServed": "Mark served",
"newTakeaway": "+ New takeaway",
"newDelivery": "+ New delivery",
"chips": {
"all": "All",
"allShort": "All",
"pending": "Pending",
"pendingShort": "PEND",
"preparing": "Preparing",
"preparingShort": "PREP",
"ready": "Ready",
"readyShort": "READY",
"partly": "Partly ready",
"partlyShort": "PART"
},
"sort": {
"time": "By order time",
"latest": "By latest change",
"kds": "Ready → Preparing → Pending"
},
"items_one": "{{count}} item",
"items_other": "{{count}} items"
},
"kds": {
"pending": "PENDING",
"preparing": "PREPARING",
"ready": "READY",
"someReady": "{{done}}/{{total}} READY"
},
"settings": {
"chips": {
"title": "Order filter chips",
"sub": "How the filters look on the Orders page.",
"full": "Full text",
"short": "Short text",
"iconFull": "Icon + full text",
"iconShort": "Icon + short text",
"icon": "Icon only",
"exIconFull": "⏳ Pending",
"exIconShort": "⏳ PEND"
},
"density": {
"title": "Table cards",
"sub": "Choose how much each card shows.",
"d1x1": "4 per row: name only",
"d2x1": "2 per row: name + status",
"d2x2": "2 per row: compact card",
"d4x1": "1 per row: horizontal list",
"d4x2": "1 per row: full card",
"d4x3": "1 per row: card with the order list"
},
"kds": {
"title": "Kitchen status",
"sub": "How each order item's kitchen status is shown.",
"badge": "Badge",
"badgeDesc": "Text in a chip (PENDING, READY…)",
"icon": "Icon",
"iconDesc": "A small coloured icon: takes less room"
},
"itemLayout": {
"title": "Order item layout",
"sub": "How each item shows in a table's order list.",
"compact": "Compact",
"compactDesc": "One line: compact, less height",
"expanded": "Expanded",
"expandedDesc": "Two lines: name + kitchen status above, prices below",
"full": "Fully detailed",
"fullDesc": "Everything: name, prices, waiter, time, options"
},
"merge": {
"title": "Keep the grouped view",
"sub": "How long the chosen grouping of items is kept.",
"off": "OFF",
"offDesc": "Back to the default when you navigate",
"perOrder": "KEEP PER ORDER",
"perOrderDesc": "Kept until the order is closed",
"global": "ALWAYS KEEP",
"globalDesc": "The same choice for every table, always"
},
"theme": {
"title": "Theme",
"light": "Light",
"dark": "Dark"
},
"popup": {
"title": "Notification style",
"sub": "When a pop-up banner appears for a new notification.",
"all": "Pop up everything",
"allDesc": "A pop-up for every notification (kitchen, messages, etc.)",
"manager": "Pop up only a manager's messages",
"managerDesc": "Kitchen notifications go to the bell without a pop-up.",
"never": "Never pop up",
"neverDesc": "No pop-ups. Open the bell to see them; they are then cleared."
},
"persist": {
"title": "Pop-ups stay",
"on": "Pop-ups stay until you tap OK.",
"off": "Pop-ups close by themselves after 3 seconds and the notification is cleared when it arrives.",
"label": "Pop-ups stay",
"onDesc": "On: you close them yourself",
"offDesc": "Off: they close after 3 s"
},
"summary": {
"title": "Summary before sending",
"sub": "Instead of sending at once, a summary of every product, choice and the order note is shown first.",
"label": "Summary + send",
"onDesc": "On: a summary is shown before sending",
"offDesc": "Off: sent at once"
},
"paySafety": {
"title": "Payment safety",
"sub": "Adds one more confirmation step against accidental payments. If you still make a mistake, a manager can turn the payment back.",
"off": "Off",
"offDesc": "A single tap confirms the payment.",
"second": "Second confirmation",
"secondDesc": "After confirming the payment, one more safety window appears before it goes through.",
"hold": "Press and hold",
"holdDesc": "To confirm the payment, hold the button down for about a second."
},
"fav": {
"title": "Favourite products",
"none": "You haven't picked any favourites yet. Tap below to start.",
"setup": "Set up favourites",
"setupSub": "Pick products and change their order",
"count_one": "{{count}} favourite on: shown as the first category when ordering.",
"count_other": "{{count}} favourites on: shown as the first category when ordering."
},
"reset": {
"title": "Reset",
"sure": "Are you sure? This can't be undone.",
"sub": "Deletes every favourite and puts the preferences back to their defaults.",
"again": "Tap again to confirm",
"all": "Reset everything",
"allSub": "Favourites & settings"
},
"navStyle": {
"title": "Navigation bar style",
"sub": "How the navigation bar at the bottom of the screen looks.",
"triple": "Three pills",
"tripleDesc": "Always 3 buttons with an icon and text, pill shaped",
"icons": "Icon bar",
"iconsDesc": "Android style, 1–5 icons of your choice"
},
"triple": {
"title": "Three-pill buttons",
"sub": "Pick exactly 3 buttons and drag to change their order.",
"count": "{{count}}/3 buttons on"
},
"available": "Available",
"icons": {
"title": "Icon bar items",
"sub": "Pick the icons to show (1–5). Drag to change the order.",
"count": "{{count}}/5 icons on"
},
"tabs": {
"layout": "Layout",
"operation": "Operation",
"favorites": "Favourites"
},
"max": "maximum"
},
"venues": {
"active": "ACTIVE",
"removeLabel": "Remove",
"placeholder": "e.g. 192.168.1.50",
"failed": "Couldn't connect.",
"removeActive": "Remove the active venue «{{name}}»? You will have to connect again.",
"remove": "Remove the venue «{{name}}» from this phone?",
"connectTitle": "Connect to a venue",
"title": "Venues",
"intro": "Scan the QR code from the manager or type the server's address. The phone must be on the venue's WiFi.",
"scan": "Scan QR",
"checking": "Checking…",
"connect": "Connect"
},
"install": {
"title": "The Xenia app",
"download": "Download the app",
"later": "Not now",
"fast": "Opens at once",
"fastText": "No loading in the browser, like any other app.",
"wifi": "Copes with WiFi drops",
"wifiText": "Keeps working when the connection drops for a moment.",
"secure": "Secure connection",
"secureText": "Encrypted link to the venue's server.",
"noSetup": "Nothing to set up",
"noSetupText": "Finds the server by itself and updates itself.",
"step1": "Tap «Download the app».",
"step2": "Open the file and allow the installation.",
"step3": "Open Xenia and scan the venue's QR code again.",
"intro": "Install the app for a faster, steadier experience."
},
"lock": {
"locked": "Locked",
"unlock": "Unlock",
"signOutOther": "Sign out (another waiter)"
},
"update": {
"available": "A new version is available",
"update": "Update",
"needsNewerApp": "The venue's server needs a newer version of the app."
},
"qr": {
"aim": "Point at the QR code from the manager (Settings → General → WiFi waiters)",
"denied": "Camera permission wasn't given. Allow it in the phone's settings or type the address.",
"noCamera": "Couldn't turn the camera on. Type the address."
},
"favSetup": {
"noOptions": "This product has no options, ingredients or preferences.",
"all": "ALL",
"favorites": "FAVOURITES ({{count}})",
"personalOn": "Personal settings on",
"managerDefaults": "Using the manager's settings",
"pickIntro": "Choose which options show for this product on the tab",
"pickOutro": "If you choose none, the manager's settings are used.",
"saveCount": "Save ({{count}} options)",
"options": "Favourite options",
"none": "You haven't added any favourites yet.",
"noneHow": "Go to the ALL tab and tap the heart next to a product."
},
"drawer": {
"tabs": {
"quick": "Quick options",
"ingredients": "Ingredients",
"prefs": "Preferences"
}
},
"pairing": {
"empty": "Type the server's address.",
"invalid": "Not a valid address. Example: 192.168.1.50",
"noServer": "No server found at this address. Check that the phone is on the venue's WiFi.",
"refused": "The server refused the connection. The phone must be on the venue's WiFi.",
"notXenia": "This address isn't a Xenia server.",
"incompatible": "The server (version {{version}}) doesn't work with this app. Update the app or the server.",
"otherVenue": "A different venue than the QR's answers at this address. Ask the manager for a new QR code.",
"wrongKey": "The server's security key doesn't match the QR code. Ask the manager for a new QR code."
}
}