AiKitIntlProvider is AI Kit’s optional internationalization boundary. Without
it, components render English and inherit the ambient React Aria locale.
Add it when you need French, a specific BCP-47 locale for date and time
formatting, or overrides for built-in AI Kit strings.
Setup
MountAiKitIntlProvider inside CartoTheme. React Aria overlays portal
inside the theme wrapper, so this order keeps them inside the internationalization
context too.
locale also configures React Aria’s locale, keeping translated strings,
timestamps, and other date and time formatting in sync. AI Kit currently ships
English synchronously and loads French (fr-FR) on demand. Unsupported locales
fall back to English.
Omit locale to inherit an existing React Aria I18nProvider or the browser
default:
Override messages
Pass only the IDs you need throughmessages. Overrides merge over the active
catalog.
{name}, {percent}, and
<link>…</link> when overriding those messages.
AiKitIntlProvider Props
The AiKitIntlProvider accepts the following props.
ReactNode
required
AI Kit subtree that receives the scoped locale and message catalog.
string
BCP-47 locale for AI Kit strings and React Aria date and time formatting. Omit
to inherit the ambient React Aria locale.
Record<string, string>
Partial built-in message overrides keyed by AI Kit message ID.