Skip to main content

make_t_function

Function make_t_function 

Source
pub fn make_t_function(
    store: TranslationStore,
) -> impl Fn(&State<'_, '_>, &[Value], Kwargs) -> Result<String, Error> + Send + Sync + 'static
Expand description

Creates a MiniJinja-compatible t() function that reads the locale variable from the template context and delegates to the TranslationStore.