The library ships its own strings in English: "Fill in this field.", "Previous month", "Show the data as a table". Dates, numbers, month and language names come from the browser's Intl in the provider's locale.
Add a language
Register your strings once, before the app renders. Anything you leave out stays English:
import { registerDsStrings } from "@senvenli/react";
registerDsStrings("de", {
required: "Füllen Sie dieses Feld aus.",
previousMonth: "Vorheriger Monat",
nextMonth: "Nächster Monat",
});Then pass the locale to the provider: <DesignSystemProvider locale="de">.
See it in Spanish
The locale alone names the months and weekdays, orders the date and picks the first day of the week. The label is your own text:
In Spanish
The locale names the months and days and orders the date; the label is yours.import { CalendarDate } from "@internationalized/date";
import { DesignSystemProvider } from "@senvenli/react";
import { DatePicker } from "@senvenli/react/date";
// Month and weekday names, the date order and the first day of the week come from the locale. The label is the
// app's own words; the library's few strings stay English until you register Spanish ones.
export default function Example() {
return (
<DesignSystemProvider locale="es-ES">
<DatePicker label="Fecha de entrega" defaultValue={new CalendarDate(2026, 3, 18)} timeZone="Europe/Madrid" />
</DesignSystemProvider>
);
}Your own locale tags
If your app uses a tag Intl does not know, map it to one it does:
import { registerLocaleAliases } from "@senvenli/react";
registerLocaleAliases({ me: "sr-Latn-ME" });LanguageSwitcher names languages with Intl. For a language it names wrongly, or a UI language browsers ship no names for, register your own:
import { registerLanguageNames } from "@senvenli/react/action";
registerLanguageNames("en", { me: "Montenegrin" });Right to left
Set dir="rtl" on the page for Arabic, Hebrew or Persian. Components use logical properties (start and end, never left and right), mirror their directional icons, and keep numbers, codes and phone numbers left to right inside a right-to-left line.
The same date picker in Arabic: the field and the calendar mirror, the arrows point the reading way, and the digits follow the locale (ar-EG writes Arabic-Indic digits, ar-AE keeps Latin ones):
In Arabic, right to left
`dir="rtl"` mirrors the field and the calendar; digits follow the locale.import { CalendarDate } from "@internationalized/date";
import { DesignSystemProvider } from "@senvenli/react";
import { DatePicker } from "@senvenli/react/date";
// Right to left: the page (here a wrapper) sets dir="rtl". The field and the calendar mirror, the arrows point the
// reading way, and the digits follow the locale (ar-EG uses Arabic-Indic digits; ar-AE keeps Latin ones).
export default function Example() {
return (
<div dir="rtl" lang="ar">
<DesignSystemProvider locale="ar-EG">
<DatePicker label="تاريخ التسليم" defaultValue={new CalendarDate(2026, 3, 18)} timeZone="Africa/Cairo" />
</DesignSystemProvider>
</div>
);
}