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.
Copy code
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.
Copy code
Dates, numbers and time zones
- Everything formats with
Intl: passlocaleandtimeZoneto 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(thelocaleitem) returns the explicit locale or the page's, and followslangas 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.