resolveUiMessages
The catalogue with overrides merged over the English.
packages/ui/src/messages.tsx
@marktiderman/genesis-uiimport { resolveUiMessages } from "@marktiderman/genesis-ui";react-docgen-typescript.resolveUiMessages
The catalogue with overrides merged over the English.
| Prop | Type | Default | Description |
|---|---|---|---|
| auth | DeepPartial<{ titles: { "sign-in": string; "sign-up": string; "forgot-password": string; "new-password": string; }; email: string; emailPlaceholder: string; password: string; newPassword: string; confirmPassword: string; ... 43 more ...; errors: { ...; }; }> | — | |
| board | DeepPartial<{ noValue: string; ownFilterSetAside: string; notAllowed: string; stillSaving: string; loadMore: string; loadMoreLeft: string; }> | — | |
| bulk | DeepPartial<{ resourceChanged: string; selected: string; selectAllMatching: string; allMatching: string; loadedOnly: string; deleteTitle: string; done: string; skipped: string; noneAllowed: string; }> | — | |
| calendar | DeepPartial<{ previousMonth: string; nextMonth: string; previousWeeks: string; nextWeeks: string; today: string; nothing: string; allDay: string; until: string; eventsOne: string; eventsOther: string; ... 12 more ...; weekOf: string; }> | — | |
| common | DeepPartial<{ empty: string; hiddenLink: string; untitled: string; yes: string; no: string; cancel: string; save: string; close: string; edit: string; delete: string; clear: string; open: string; openItem: string; loading: string; saving: string; }> | — | |
| confirmDelete | DeepPartial<{ title: string; recycle: string; permanent: string; }> | — | |
| conflict | DeepPartial<{ title: string; description: string; same: string; field: string; theirs: string; mine: string; empty: string; unknown: string; keepMine: string; takeTheirs: string; failed: string; record: string; }> | — | |
| detail | DeepPartial<{ fallbackTitle: string; }> | — | |
| export | DeepPartial<{ action: string; done: string; truncated: string; failed: string; searchNotExportable: string; }> | — | CSV export from a list (ADR 0017 §8). |
| filters | DeepPartial<{ search: string; status: string; sortBy: string; sort: string; clearSearch: string; views: string; viewCount: string; noViews: string; saveCurrent: string; clearAll: string; saveViewTitle: string; ... 8 more ...; viewsFailed: string; }> | — | |
| form | DeepPartial<{ createTitle: string; editTitle: string; createDescription: string; editDescription: string; created: string; createdUnnamed: string; }> | — | |
| inbox | DeepPartial<{ views: string; saved: string; search: string; pickTitle: string; pickBody: string; goneTitle: string; goneBody: string; back: string; details: string; }> | — | A view drawn as an inbox (`type="inbox"`). |
| kanban | DeepPartial<{ noItems: string; card: string; cardInLabel: string; pickUp: string; move: string; moveTo: string; moved: string; moveFailed: string; pickedUp: string; pickedUpTouch: string; over: string; droppedBack: string; cancelled: string; countOfLimit: string; overLimit: string; instructions: string; }> | — | |
| link | DeepPartial<{ placeholder: string; search: string; none: string; noResults: string; loadMore: string; loadFailed: string; createNew: string; selected: string; }> | — | A link's picker in a form (RelationField). |
| page | DeepPartial<{ errorTitle: string; errorBody: string; retry: string; create: string; countOne: string; countOther: string; countFiltered: string; notAllowed: string; stillSaving: string; loadMore: string; ... 15 more ...; deleteFailed: string; }> | — | |
| sheet | DeepPartial<{ label: string; readOnly: string; skipped: string; failed: string; saveFailed: string; moved: string; notNumber: string; notJson: string; notBoolean: string; undo: string; undone: string; nothingToUndo: string; previous: string; next: string; page: string; }> | — | A view as a spreadsheet (`type="sheet"`). |
| shell | DeepPartial<{ navigation: string; openNavigation: string; closeNavigation: string; expandSidebar: string; collapseSidebar: string; primaryNavigation: string; headerNavigation: string; pageSections: string; breadcrumb: string; more: string; moreDescription: string; moreCurrent: string; }> | — | |
| sortable | DeepPartial<{ item: string; reorder: string; move: string; moveUp: string; moveDown: string; moveToTop: string; moveToBottom: string; moved: string; moveFailed: string; pickedUp: string; dropped: string; cancelled: string; instructions: string; }> | — | |
| table | DeepPartial<{ noRecords: string; selectRow: string; expandRow: string; collapseRow: string; selectAll: string; columns: string; resetColumns: string; ascending: string; descending: string; sortedBy: string; ... 9 more ...; notAllowed: string; }> | — | |
| time | DeepPartial<{ locale: string; justNow: string; minutesAgo: string; inMinutes: string; now: string; minutesShort: string; yesterday: string; }> | — | Relative times (`relativeTime`): `{n}` is a count. Hours, days and dates are Intl's words in `locale`; a translation sets its own. |
| view | DeepPartial<{ mode: string; type: string; grid: string; table: string; list: string; settings: string; settingsTitle: string; pageSize: string; pageSizeOption: string; density: string; compact: string; comfortable: string; spacious: string; }> | — | |
| widget | DeepPartial<{ empty: string; emptyList: string; error: string; retry: string; progressOf: string; day: string; days: string; week: string; weeks: string; streakOpen: string; streakToday: string; seeAll: string; partial: string; }> | — | Widgets (`<Widget>`): tiles fed by a view. |
| workspace | DeepPartial<{ save: string; saved: string; notChanged: string; run: string; noRunner: string; checks: string; checkDone: string; checkTodo: string; notANumber: string; }> | — |
fillMessage
Fills `{name}` placeholders; an unknown placeholder is left as written.
No declared props.
UiMessagesProvider
Rewords or translates Genesis UI's components below it. Nested providers build on the one above, so a section can change a few words.
| Prop | Type | Default | Description |
|---|---|---|---|
| messages* | DeepPartial<{ common: { empty: string; hiddenLink: string; untitled: string; yes: string; no: string; cancel: string; save: string; close: string; edit: string; delete: string; clear: string; open: string; openItem: string; loading: string; saving: string; }; ... 21 more ...; shell: { ...; }; }> | — |
useUiMessages
The catalogue in effect: English unless a `UiMessagesProvider` says otherwise.
No declared props.
__object
Every word Genesis UI's data components show or announce, in English. `{name}` marks a value filled in at run time; keep it in a translation. Override any part through `UiMessagesProvider` (see `messages.tsx`).
No declared props.
time
Relative times (`relativeTime`): `{n}` is a count. Hours, days and dates are Intl's words in `locale`; a translation sets its own.
No declared props.
link
A link's picker in a form (RelationField).
No declared props.
inbox
A view drawn as an inbox (`type="inbox"`).
No declared props.
sheet
A view as a spreadsheet (`type="sheet"`).
No declared props.
export
CSV export from a list (ADR 0017 §8).
No declared props.
widget
Widgets (`<Widget>`): tiles fed by a view.
No declared props.
UiMessages
The shape a translation fills.
No declared props.