pub trait BundleExt {
// Required method
fn add_datetime_support(&mut self) -> Result<(), FluentError>;
}Expand description
Extension trait to register DateTime support on FluentBundle
FluentDateTime values are rendered automatically, but you need to call
BundleExt::add_datetime_support at bundle creation time when using
the DATETIME function inside FTL resources.
Required Methods§
Sourcefn add_datetime_support(&mut self) -> Result<(), FluentError>
fn add_datetime_support(&mut self) -> Result<(), FluentError>
Registers the DATETIME function
Call this on a FluentBundle.