Abstract
Create a FluentType
instance.
The JavaScript value to wrap.
Abstract
toFormat this instance of FluentType
to a string.
Formatted values are suitable for use outside of the FluentBundle
.
This method can use Intl
formatters available through the scope
argument.
Unwrap the raw value stored by this FluentType
.
The
FluentType
class is the base of Fluent's type system.Fluent types wrap JavaScript values and store additional configuration for them, which can then be used in the
toString
method together with a properIntl
formatter.