Skip to content
Eskais UI

Guides

Internationalization

Components ship no visible copy in a specific language. Accessible labels default to English and every one is overridable.

Visible copy is yours

Titles, button text and empty states are props: DataState requires errorTitle and emptyTitle, SkipLink requires its text. Write them in the page's language and set lang on the element that holds them.

Accessible labels

Screen-reader labels (close buttons, spinners, toolbars) default to English. Override one string or pass a whole dictionary; Spanish dictionaries ship for the larger components.

<MarkdownEditor labels={markdownEditorLabelsEs} /><AgentTaskBoard labels={agentTaskBoardLabelsEs} locale="es-ES" timeZone="Europe/Madrid" /><Sidebar label="Navegación" labels={{ open: "Abrir navegación", close: "Cerrar navegación" }} />

Form messages

Validation messages come from the issue code (required, minLength, email…) with params. FormField messages wins over the form's; returning undefined falls back to the defaults, then the schema's own message.

import { createFormMessages, formMessagesEs } from "@/components/ui/form"
<Form messages={formMessagesEs} />
// Or any i18n library: keys are form.<code><Form messages={createFormMessages(t)} /><Form messages={(issue) => t(`form.${issue.code}`, { ...issue.params, field: issue.label })} />

Dates, numbers and time zones

  • Everything formats with Intl: pass locale and timeZone to RelativeTime, Usage, DateTimePicker and the agent task components.
  • Without a locale, numbers and dates follow the page's <html lang>, not the browser's default: useLocale(locale) from @/lib/locale (the locale item) returns the explicit locale or the page's, and follows lang as it changes. StatDelta, StatValue, QuantityValue, RelativeTime, charts, attachments, the inbox and the agent task board use it; Meter and Progress read the page's language through UI SDK. Use it in your own formatters.
  • Calendars and date pickers read the week start and date format from the locale.
  • Right to left needs no provider: components read the direction from the page.