interface
AdminI18n
Current language, direction, translation, and locale-aware formatting available to plugins.
Properties
| Property | Type | Description |
|---|---|---|
language | string | The language value. |
direction | "ltr" | | The direction value. |
timeZone | string | The timeZone value. |
text | (canonical: string, | The text value. |
t | (key: AdminTranslationKey, | The t value. |
formatDate | (value: Date | | The formatDate value. |
formatNumber | (value: number, | The formatNumber value. |
formatRelativeTime | (value: number, | The formatRelativeTime value. |
formatList | (values: readonly string[], | The formatList value. |
Full signature
interface AdminI18n { ... }Methods
AdminI18n.formatDate()Public method AdminI18n.formatDate from @riducms/plugin.
AdminI18n.formatList()Public method AdminI18n.formatList from @riducms/plugin.
AdminI18n.formatNumber()Public method AdminI18n.formatNumber from @riducms/plugin.
AdminI18n.formatRelativeTime()Public method AdminI18n.formatRelativeTime from @riducms/plugin.
AdminI18n.t()Public method AdminI18n.t from @riducms/plugin.
AdminI18n.text()Public method AdminI18n.text from @riducms/plugin.