Provides a locale value and setter to underlying children.
Renders a message using a runtime from RuntimeContext and a locale from LocaleContext.
The context that provides IRuntime to Message and useMessage.
Creates a component that renders a message using a runtime provided through the runtimeContext
.
The type of the context that carries i18n data and provides the current locale.
The context that provides a runtime to render a message.
The context that holds i18n related data.
The callback that returns a locale from i18n context value.
Creates a React hook that returns a callback that renders a message function using runtime retrieved from
runtimeContext
.
The type of values
The type of the context that carries i18n data and provides the current locale.
The context that provides a runtime to render a message.
The context that holds i18n related data.
The callback that returns a locale from i18n context value.
Creates a React hook that returns a callback that renders a message function using runtime retrieved from
runtimeContext
.
Creates a runtime that renders messages using React components.
By default, all elements are rendered using React.createElement
and element attributes are rendered as strings.
Runtime options.
Returns the locale value and setter.
The React hook that returns a callback that renders a message function using a runtime from RuntimeContext and a locale from LocaleContext.
Generated using TypeDoc
The context that provides current locale to Message and useMessage.
LocaleProvider