/// Runs the build process of building many templates for the given locales data, building directly for all supported locales. This is
/// fine because of how ridiculously fast builds are.
Runs the build process of building many templates for the given locales data, building directly for all supported locales. This is
fine because of how ridiculously fast builds are.
Runs the build process of building many templates for the given locales data building directly for all supported locales . This is fine because of how ridiculously fast builds are .
pub async fn build_app(
    templates: &TemplateMap<SsrNode>,
    locales: &Locales,
    (immutable_store, mutable_store): (&ImmutableStore, &impl MutableStore),
    translations_manager: &impl TranslationsManager,
    exporting: bool,
) -> Result<(), ServerError> {
    let locales = locales.get_all();
    let mut futs = Vec::new();
    for locale in locales {
        futs.push(build_templates_and_translator_for_locale(
            templates,
            locale.to_string(),
            (immutable_store, mutable_store),
            translations_manager,
            exporting,
        ));
    }
    // Build all locales in parallel
    try_join_all(futs).await?;
    Ok(())
}
pub async fn build_app ( templates : & TemplateMap < SsrNode > , locales : & Locales , ( immutable_store , mutable_store ) : ( & ImmutableStore , & impl MutableStore ) , translations_manager : & impl TranslationsManager , exporting : bool , ) -> Result < ( ) , ServerError > { let locales = locales . get_all ( ) ; let mut futs = Vec :: new ( ) ; for locale in locales { futs . push ( build_templates_and_translator_for_locale ( templates , locale . to_string ( ) , ( immutable_store , mutable_store ) , translations_manager , exporting , ) ) ; } // Build all locales in parallel try_join_all ( futs ) . await ? ; Ok ( ( ) ) }
Runs the build process of building many templates for the given locales data, building directly for all supported locales.
Runs the build process of building many templates for the given locales data building directly for all supported locales .
templates
&TemplateMap<SsrNode>
locales
(&ImmutableStore, &impl MutableStore)
translations_manager
&impl TranslationsManager
exporting
bool