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§

source

fn add_datetime_support(&mut self) -> Result<(), FluentError>

Registers the DATETIME function

Call this on a FluentBundle.

Implementations on Foreign Types§

source§

impl<R, M> BundleExt for FluentBundle<R, M>

Implementors§