feat(waiter): English-first texts, part a: shell, sign-in, tables, settings, venues (platform-v2 step 4.5a)
- @xenia/i18n: new `waiter` namespace (en + el); the waiter's Greek texts become keys with English written fresh (Greek kept as the translation). - App gates, side drawer / nav bars / notifications, user menu, login, table list and cards, settings, venues + pairing errors, install dialog, lock screen, update banners, QR scanner, favourites setup. - Money and times through useFormat() (venue time, the language's number format): table cards, quick table view, user menu, notifications. - waiter i18n.js: tw() for code outside components (pairing errors). - The table-list's FavoritesSetupPage `.map(t => …)` renamed so it doesn't shadow t. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
// The waiter app's translations instance (plan step 4.1; its own texts become keys in 4.5).
|
||||
// The waiter app's translations instance (plan step 4.1); its texts are keys in the `waiter`
|
||||
// namespace of @xenia/i18n (step 4.5). Components use useTranslation('waiter'); code outside
|
||||
// components (services, stores, native glue) uses tw('key').
|
||||
import { createI18n } from '@xenia/i18n'
|
||||
|
||||
export const i18n = createI18n({ defaultNS: 'common' })
|
||||
|
||||
/** Translate a waiter key outside a component (the current language). */
|
||||
export const tw = (key, options) => i18n.t(key, { ns: 'waiter', ...options })
|
||||
|
||||
Reference in New Issue
Block a user