terminal/src/apps/menu-tablet: the venue's menu for staff (a quick price
check) and guests. Category chips that jump to their section, or one A–Z
list; compact rows, expanded rows (photo, description) or full cards; tap a
product to see it big (photo, price, description, tags); search that ignores
accents and also finds names typed in Latin letters ("souvl"); sold out
marked; the guest's language for the tablet's texts; back to the start (search
cleared, first language, top) after the set time without a touch; light or
dark; the last menu kept for offline; live on menu_tablet.changed /
device.updated. @xenia/i18n exports ./latin for plain-JS use.
tests: logic (3), e2e menu_tablet.mjs (10 checks, in run-all).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
613 B
JSON
25 lines
613 B
JSON
{
|
|
"name": "@xenia/i18n",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Translations (i18next, en/el), language resolution and venue-time formatting: dates, money, numbers (plan step 2.4).",
|
|
"main": "src/index.js",
|
|
"exports": {
|
|
".": "./src/index.js",
|
|
"./sample": "./sample/Sample.jsx",
|
|
"./latin": "./src/latin.js"
|
|
},
|
|
"scripts": {
|
|
"test": "node --test \"tests/*.test.mjs\"",
|
|
"check": "node scripts/check-i18n.mjs"
|
|
},
|
|
"dependencies": {
|
|
"i18next": "27.1.1",
|
|
"react-i18next": "18.0.1"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^19.0.0"
|
|
}
|
|
}
|