Feature 1 — showMacros toggle: - Restaurant.showMacros boolean (default false) so existing menus (e.g. NOCNEX) never publish with empty macros (migration 0004; default applies to existing rows) - Editor toggle in the Palette tab, saved via the existing /settings endpoint - Read live (not from the snapshot) in the public page and /menu API so it takes effect immediately without republishing; old snapshots default off - When off, the public menu hides every macro layer: card flip + 'tap to see macros', the gallery macros, and the macro color-code legend Feature 2 — public list view: - Card/list toggle in the public menu; preference is NOT persisted (always starts on cards) - New ListRow: compact traditional rows (name + price + allergen tags); tap the name to expand image + description (accordion); tap the image to reveal macros (only when showMacros is on) i18n: viewCards/viewList (menu) and showMacros/showMacrosHint (editor) in es/en at parity. Glassmorphism, mobile-first and safe areas preserved. Existing features untouched (versioning, import, consultant, QR, i18n). Verified: build passes; 4 migrations apply in order; existing rows default false; toggling via /settings updates /menu live without republish.
176 lines
5.8 KiB
JSON
176 lines
5.8 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",
|
|
"send": "Send",
|
|
"addToOrder": "Add to order",
|
|
"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."
|
|
},
|
|
"editor": {
|
|
"save": "Save",
|
|
"edit": "Edit",
|
|
"delete": "Delete",
|
|
"catalog": "Catalog",
|
|
"palette": "Palette",
|
|
"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",
|
|
"completeOrder": "Complete order",
|
|
"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": "When off, the public menu shows no macro layer at all."
|
|
},
|
|
"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"
|
|
}
|
|
}
|