feat(menu): the menu in English and Greek (platform-v2 step 6.4, D-29)

- products.translations / categories.translations (Alembic 0033, core/menu_languages.py: el + en,
  name / description / quick options by their base name; catalog.translation). Empty = the text
  as typed; no machine translation (owner).
- In the manager's product editor ("In English" / "In Greek", quick extras), the category dialog,
  and a menu board's Language (signage MenuContent.language).
- Customer screens only: cloud snapshot names / descriptions per language (C-2), the menu tablet's
  EL / EN switch the names (localize), signage boards; tickets, KDS, counter, phones keep the base.
- Catalogue bundles carry translations; @xenia/access menuLanguages.js (a backend test compares).
- e2e: manager (the other language saved), menu tablet (EN / EL names), QR table (English on
  the menu, the base name on the kitchen's order, Greek page as typed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 10:47:03 +02:00
co-authored by Claude Opus 5.5
parent 5048f82a4c
commit e395d99704
32 changed files with 459 additions and 38 deletions
+5
View File
@@ -22,6 +22,8 @@ class Category(Base):
# Its picture in the media library (plan step 5.2); the library refuses to delete it while set
media_id = Column(Integer, ForeignKey("media.id", ondelete="SET NULL"), nullable=True, index=True)
media = relationship("Media", lazy="joined")
# The menu in other languages (plan step 6.4, core/menu_languages.py): {"en": {"name": "…"}}
translations = Column(Text, nullable=True)
@property
def image(self):
@@ -88,6 +90,9 @@ class Product(Base):
tags = Column(Text, nullable=True)
# The EU allergens it has (plan step 6.3, core/allergens.py): JSON {key: "contains" | "may_contain"}
allergens = Column(Text, nullable=True)
# The menu in other languages (plan step 6.4, core/menu_languages.py):
# {"en": {"name": "…", "description": "…", "quick": {"<quick option>": "…"}}}
translations = Column(Text, nullable=True)
# Fiscal printer (ΦΗΜ) fields
fiscal_name = Column(String, nullable=True) # short name for receipt (falls back to name)