feat: staff apps show the menu in the reader's language (plan 6R.L)

The waiters' phones and the counter show categories, products and every
choice (quick options, extras and sub-choices, preferences, shared sets,
ingredients, groups) in the signed-in person's language, falling back to
the stored text. Display only: carts, lines, tickets and the kitchen keep
the venue's text (ids, sub-choices by stored name). In the venue's own
language nothing changes.

- @xenia/access: menuText / useMenuText (mt, mt.choice, mt.line, mt.matches)
- /api/pos/menu carries translations for products, categories and choices
- shared ProductDialog takes a text() prop (the counter passes useMenuText)
- search finds a product by its name in any language (counter, waiter)
- waiter: useMenuNames for sent lines; picker, drawer, cart, summary,
  table lines, quantity / price history, favourites setup
- counter: categories, cards, dialog, cart lines, table lines, payment rows
- tests: access menuText, ordering search, test_pos per-language,
  e2e waiter.mjs and terminal.mjs 6R.L blocks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 20:18:10 +02:00
co-authored by Claude Opus 5.5
parent f107deca8c
commit 0840247768
29 changed files with 518 additions and 123 deletions
+4 -2
View File
@@ -27,8 +27,10 @@ language). Translations add the other language:
Quick options are kept by their base name (they are recreated on every product save, so ids
change). A missing translation shows the base text, whatever its language — never Latin letters,
never a machine translation (owner). Who sees translations: the customer-facing screens (QR menu,
order app, menu tablet, signage menu boards). Tickets, the kitchen display, the counter and the
waiters' phones keep the base text (the staff's).
order app, menu tablet, signage menu boards), and since 6R.L the waiters' phones and the counter
show menu names in the staff member's language, for display only (`@xenia/access` useMenuText;
`routers/pos.py` sends every text per language). Order lines, tickets and the kitchen display keep
the base text (the venue's): apps send ids, and sub-choices by their stored name.
"""
from __future__ import annotations