Skip to main content

compile_template_with_texts

Function compile_template_with_texts 

Source
pub fn compile_template_with_texts(
    name: &str,
    source: &str,
    components: &Components,
    translations: &Translations,
) -> Result<Vec<u8>, TemplateError>
Expand description

Each t(…) call keeps its text in the source language of translations, so an app built without i18n writes it.