interface

AdminI18n

interface AdminI18n { ... }

Public interface AdminI18n from @riducms/translations.

Source packages/translations/src/index.ts:15

languagestring
The language value.
direction"ltr" | "rtl"
The direction value.
timeZonestring
The timeZone value.
text(canonical: string, translations?: Readonly<Record<string, string>>) => string
The text value.
t(key: AdminTranslationKey, variables?: TranslationVariables) => string
The t value.
formatDate(value: Date | string | number, options?: Intl.DateTimeFormatOptions) => string
The formatDate value.
formatNumber(value: number, options?: Intl.NumberFormatOptions) => string
The formatNumber value.
formatRelativeTime(value: number, unit: Intl.RelativeTimeFormatUnit) => string
The formatRelativeTime value.
formatList(values: readonly string[], options?: Intl.ListFormatOptions) => string
The formatList value.

Methods