Unifies the model: a table is ALWAYS one account; every active Order on a table number is a subaccount (named or not) — no more 'normal vs split table'. Total convergence (fixes the bug): the dashboard groups ALL active orders by tableNumber into one card; two normal orders on the same table now share one table card with two subaccounts. (POST /order already converges split too.) Batches: items sent together share a batchId + batchAt; later additions form a new batch. reconcileItems() carries id/batch/delivered for matched lines and opens one new batch for new lines. (OrderItem is embedded JSON, so its new fields — id, batchId, batchAt, delivered, deliveredAt — need no migration.) Per-item timer + delivery: each item runs from its batch start; 'Entregado' freezes that item's timer (deliveredAt) while siblings keep running. Color thresholds are per-restaurant (timerGreenMax/timerYellowMax, migration 0011) and editable in the Orders tab; each item colors green/yellow/red by its own minutes. Independent states: delivered (per item, kitchen) vs paid (per subaccount, billing). Admin can rename a subaccount inline (PATCH subaccountName). All live via SSE; retention unchanged. i18n es/en at parity. Glassmorphism/mobile-first/safe areas preserved. Cart, maridajes and consultant untouched. New: Restaurant.timerGreenMax/timerYellowMax (migration 0011); OrderItem JSON gains id/batchId/batchAt/delivered/deliveredAt (no migration); PATCH orders/[id] gains deliverItemId+delivered and subaccountName; settings + GET /orders carry thresholds. Verified (build passes, all i18n present, migration 0011 applies): 1 two normal orders table 7 -> one card, two subaccounts; 2 lote A (30m ago) red + lote B (now) green, two batches; 3 deliver A1 -> frozen w/ deliveredAt, A2 keeps running; 4 thresholds 5/15 persist and return via GET /orders; 5 paid toggles independent of delivered (and vice versa); 6 rename '(table)' -> 'Juan' persists + SSE order-edit carries it.
240 lines
8.2 KiB
JSON
240 lines
8.2 KiB
JSON
{
|
|
"common": {
|
|
"appName": "Smart menu",
|
|
"save": "Save",
|
|
"cancel": "Cancel",
|
|
"delete": "Delete",
|
|
"edit": "Edit",
|
|
"add": "Add",
|
|
"close": "Close",
|
|
"loading": "Loading…",
|
|
"back": "Back",
|
|
"confirm": "Confirm",
|
|
"restore": "Restore",
|
|
"language": "Language"
|
|
},
|
|
"menu": {
|
|
"askAi": "Ask the AI",
|
|
"actions": "Actions",
|
|
"placeOrder": "Place order",
|
|
"callWaiter": "Call the waiter",
|
|
"viewFull": "View full menu",
|
|
"tableNumber": "Table number",
|
|
"table": "Table",
|
|
"send": "Send",
|
|
"addToOrder": "Add",
|
|
"cart": "Cart",
|
|
"cartEmpty": "Your cart is empty.",
|
|
"itemNotePlaceholder": "Note (e.g. no onion)",
|
|
"generalNotePlaceholder": "General order note (optional)",
|
|
"total": "Total",
|
|
"confirmOrder": "Confirm order",
|
|
"suggestions": "You might also like",
|
|
"split": "Split bill",
|
|
"myAccount": "My account",
|
|
"yourName": "Your name",
|
|
"createSplit": "Create split bill",
|
|
"joinSplit": "Join table {table}'s bill",
|
|
"splitDetected": "Table {table} already has a split bill",
|
|
"yourSubaccount": "Your subaccount",
|
|
"yourSubtotal": "What you owe",
|
|
"tableTotal": "Table total",
|
|
"updateSubaccount": "Update my subaccount",
|
|
"addDishes": "Add dishes",
|
|
"subaccountUpdated": "Your subaccount was updated",
|
|
"splitItemsEmpty": "Add dishes to your subaccount.",
|
|
"yourOrder": "Your order",
|
|
"empty": "No dishes in this section yet.",
|
|
"waiterCalled": "The waiter is on the way",
|
|
"orderSent": "Your order was sent",
|
|
"macroLegend": "Macro color code",
|
|
"tapToFlip": "Tap to see macros",
|
|
"viewCards": "Cards",
|
|
"viewList": "List"
|
|
},
|
|
"macros": {
|
|
"protein": "Protein",
|
|
"carbs": "Carbs",
|
|
"sugar": "Sugars",
|
|
"fat": "Fats",
|
|
"fiber": "Fiber",
|
|
"kcal": "Calories"
|
|
},
|
|
"ai": {
|
|
"title": "Menu consultant",
|
|
"placeholder": "What do you recommend if I'm diabetic?",
|
|
"thinking": "Thinking…",
|
|
"intro": "Tell me what you're after and I'll recommend dishes from the menu.",
|
|
"pairWith": "To pair with"
|
|
},
|
|
"editor": {
|
|
"save": "Save",
|
|
"edit": "Edit",
|
|
"delete": "Delete",
|
|
"catalog": "Catalog",
|
|
"palette": "Palette",
|
|
"brand": "Brand",
|
|
"orders": "Orders",
|
|
"qr": "QR",
|
|
"publishedVersion": "Published version",
|
|
"noVersion": "You haven't published a version yet",
|
|
"addDish": "Add dish",
|
|
"newSection": "New section",
|
|
"viewMenu": "View menu",
|
|
"saveAndPublish": "Save and publish",
|
|
"versionNamePlaceholder": "Updated menu June 2026",
|
|
"versionNameLabel": "Version name",
|
|
"publishSuccess": "Done! Your menu «{name}» is now live",
|
|
"history": "Version history",
|
|
"historyHint": "You can see your last 5 versions",
|
|
"translateAi": "Translate with AI",
|
|
"autoTranslation": "Auto translation",
|
|
"reviewedTranslation": "Reviewed",
|
|
"complete": "Complete",
|
|
"missingInfo": "Missing info",
|
|
"active": "Active",
|
|
"inactive": "Inactive",
|
|
"name": "Name",
|
|
"description": "Description",
|
|
"price": "Price",
|
|
"section": "Section",
|
|
"allergens": "Allergens",
|
|
"dietTags": "Diet tags",
|
|
"media": "Photos and videos",
|
|
"uploadMedia": "Upload photo or video",
|
|
"ordersDisabled": "Order taking is disabled",
|
|
"enableOrders": "Enable order taking",
|
|
"enableSplit": "Enable split bill",
|
|
"enableSplitHint": "Diners build a shared per-table account with a subaccount each.",
|
|
"split": "Split",
|
|
"tableTotal": "Table total",
|
|
"completeTable": "Complete table",
|
|
"tableSubaccount": "Table",
|
|
"subaccountEmpty": "No dishes yet.",
|
|
"paid": "Paid",
|
|
"markPaid": "Mark paid",
|
|
"markUnpaid": "Mark unpaid",
|
|
"modified": "Modified",
|
|
"addedNow": "just now",
|
|
"addedAgo": "added {time} ago",
|
|
"batch": "Batch",
|
|
"markDelivered": "Delivered",
|
|
"markUndelivered": "Undo",
|
|
"editName": "Edit name",
|
|
"namePlaceholder": "Subaccount name",
|
|
"timerThresholds": "Timer thresholds (min)",
|
|
"timerThresholdsHint": "Green / yellow by minutes; red after.",
|
|
"orderRetention": "Keep completed orders for",
|
|
"orderRetentionHint": "Older completed orders are removed automatically.",
|
|
"hours": "hours",
|
|
"generateSuggestions": "Generate smart cart suggestions",
|
|
"generateSuggestionsHint": "AI analyzes the menu on publish and precomputes pairings (just once).",
|
|
"completeOrder": "Complete order",
|
|
"itemNote": "Dish note",
|
|
"generalNote": "General note",
|
|
"searchDish": "Search a dish to add…",
|
|
"total": "Total",
|
|
"table": "Table",
|
|
"downloadQr": "Download QR",
|
|
"publicLink": "Public link",
|
|
"copyLink": "Copy link",
|
|
"copied": "Copied",
|
|
"paletteHint": "This does not affect the macro color code",
|
|
"showMacros": "Show macros on the menu",
|
|
"showMacrosHint": "Each section can hide its macros individually.",
|
|
"showMacrosDisclaimer": "Macros will stop showing to the public, but they are not deleted.",
|
|
"sectionMacros": "Macros in this section"
|
|
},
|
|
"brand": {
|
|
"banner": "Banner image",
|
|
"bannerEmpty": "No banner",
|
|
"uploadBanner": "Upload banner",
|
|
"logo": "Logo / profile photo",
|
|
"uploadLogo": "Upload logo",
|
|
"social": "Social links",
|
|
"platform": "Platform",
|
|
"addLink": "Add link"
|
|
},
|
|
"qr": {
|
|
"templates": "Templates",
|
|
"customize": "Customize",
|
|
"dotsColor": "Dots color",
|
|
"cornersColor": "Corners color",
|
|
"background": "Background",
|
|
"transparent": "Transparent",
|
|
"dotShape": "Dot shape",
|
|
"cornerShape": "Corner shape",
|
|
"gradient": "Gradient",
|
|
"logo": "Center logo",
|
|
"uploadLogo": "Upload logo",
|
|
"logoHint": "The logo takes up at most 20% of the code so it doesn't hurt scanning.",
|
|
"errorLevel": "Error correction",
|
|
"lowContrast": "Contrast between dots and background is low; the QR may not scan well. Use higher-contrast colors.",
|
|
"verifyScan": "Check that your QR scans well before printing.",
|
|
"shapes": {
|
|
"square": "Square",
|
|
"rounded": "Rounded",
|
|
"dots": "Dots",
|
|
"classy": "Classy",
|
|
"classy-rounded": "Classy rounded",
|
|
"extra-rounded": "Extra rounded"
|
|
},
|
|
"corners": {
|
|
"square": "Square",
|
|
"dot": "Dot",
|
|
"extra-rounded": "Rounded"
|
|
}
|
|
},
|
|
"import": {
|
|
"title": "Load menu",
|
|
"loadMenu": "Load menu",
|
|
"method": {
|
|
"file": "File",
|
|
"link": "Link",
|
|
"text": "Text"
|
|
},
|
|
"filePrompt": "Tap to choose a file",
|
|
"fileHint": "PDF, photo of the menu, Excel or CSV",
|
|
"textPrompt": "Paste your menu text here…",
|
|
"disclaimer": "Estimates (especially allergens) are AI-generated and must be verified before publishing. Smart Menu is not responsible for unverified data.",
|
|
"extract": "Extract menu",
|
|
"extracting": "Reading your menu with AI…",
|
|
"reviewSummary": "We found {sections} sections and {products} dishes. Review them before applying.",
|
|
"estimatedBadge": "Estimated by AI — verify",
|
|
"modeAdd": "Add to my current menu",
|
|
"modeReplace": "Replace my current menu",
|
|
"replaceWarning": "This will delete your current draft sections and dishes.",
|
|
"apply": "Apply to draft",
|
|
"errors": {
|
|
"import_failed": "We couldn't read that menu. Try another file or paste the text.",
|
|
"nothing_found": "We didn't find any dishes in what you sent.",
|
|
"invalid_link": "That link isn't valid.",
|
|
"fetch_failed": "We couldn't open that link.",
|
|
"empty_text": "Paste some text first.",
|
|
"no_file": "Choose a file first.",
|
|
"file_too_large": "The file is too large (max {mb} MB). Compress it or use the text or link method.",
|
|
"parse_failed": "We couldn't read the menu cleanly. Try less text or load it by sections.",
|
|
"output_truncated": "The menu is very long and got cut off. Load it in parts (e.g. one section at a time)."
|
|
}
|
|
},
|
|
"auth": {
|
|
"login": "Log in",
|
|
"username": "Username",
|
|
"password": "Password",
|
|
"invalid": "Wrong username or password",
|
|
"invalidLink": "Invalid access link"
|
|
},
|
|
"admin": {
|
|
"title": "Collina master panel",
|
|
"newRestaurant": "New restaurant",
|
|
"restaurants": "Restaurants",
|
|
"name": "Name",
|
|
"slug": "Slug",
|
|
"create": "Create restaurant",
|
|
"editorLink": "Editor link",
|
|
"publicLink": "Public link",
|
|
"credentials": "Initial credentials",
|
|
"active": "Active"
|
|
}
|
|
}
|