GitHub

Reference core

locale

interface 1 type 1
interface Interfaces 1

# Messages

Shared message shape every @kumiki/locale/<lang> subpath conforms to.

Type-only — never imported at runtime, never bundled into the per-locale output. Each locale's messages is declared with satisfies Messages so literal types stay narrow while the shape is enforced.

Members

alert
alert: object dismissLabel: string

Alert component messages — close button accessible name.

###### dismissLabel

aria-label for the close button on a dismissible alert.

breadcrumb
breadcrumb: object label: string

Breadcrumb component messages.

###### label

Default aria-label on the surrounding <nav>.

combobox
combobox: object cleared: string clearLabel: string countResults: (n) => string listboxLabel: string noResults: string

Combobox component messages — listbox label, no-results / count-results announcements, clear-input feedback.

###### cleared

SR announcement after the input is cleared.

###### clearLabel

aria-label for the clear button.

###### countResults

SR announcement for the result count after filtering.

###### Parameters

###### n

number

###### Returns

string

###### listboxLabel

aria-label for the listbox when the consumer didn't supply one.

###### noResults

Status text + SR announcement when the filtered set is empty.

dialog
dialog: object closeLabel: string

Dialog component messages — close-button accessible name.

###### closeLabel

aria-label for the close button.

formField
formField: object required: string requiredError: string typeMismatch: string

FormField component messages — required indicator + generic validation messages.

###### required

Visual indicator appended to the label when the field is required.

###### requiredError

Generic error when a required field is empty.

###### typeMismatch

Generic error when the value's type is wrong (e.g. text in a number input).

pagination
pagination: object currentPage: (n) => string first: string label: string last: string next: string page: (n) => string prev: string

Pagination component messages.

###### currentPage

aria-label for the current-page indicator.

###### Parameters

###### n

number

###### Returns

string

###### first

aria-label for the first-page button.

###### label

Default aria-label on the surrounding <nav>.

###### last

aria-label for the last-page button.

###### next

aria-label for the next-page button.

###### page

aria-label for an inactive page button ({n} is the page number).

###### Parameters

###### n

number

###### Returns

string

###### prev

aria-label for the previous-page button.

popconfirm
popconfirm: object cancel: string confirm: string

Popconfirm recipe messages — default labels for the two action buttons.

###### cancel

Default label for the cancel button. Override via cancelLabel prop.

###### confirm

Default label for the confirm button. Override via confirmLabel prop.

table
table: object rowCollapse: string rowExpand: string rowSelect: string selectAll: string sortAscending: string sortClear: string sortDescending: string

Table component messages — sort, expand, select.

###### rowCollapse

###### rowExpand

###### rowSelect

###### selectAll

###### sortAscending

###### sortClear

###### sortDescending

tabs
tabs: object tablistLabel: string

Tabs component messages — tablist accessible-name fallback.

###### tablistLabel

Fallback aria-label for the tablist when the consumer didn't supply one.

timeField
timeField: object am: string dayPeriod: string hour: string minute: string placeholder: string pm: string second: string

TimeField segmented-input messages.

###### am

Visible label for AM (12-hour cycle).

###### dayPeriod

aria-label for the AM/PM spinbutton.

###### hour

aria-label for the hour spinbutton.

###### minute

aria-label for the minute spinbutton.

###### placeholder

Visible glyph for an empty (unset) numeric segment.

###### pm

Visible label for PM (12-hour cycle).

###### second

aria-label for the second spinbutton.

type Type Aliases 1

# Direction

Direction = "ltr" | "rtl"

Layout direction tag exported by every locale subpath. RTL for ar/he, LTR otherwise.