interface

AdminI18n

Public interface AdminI18n from @riducms/translations.

Properties

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

Full signature

Methods