diff --git a/src/templates.rs b/src/templates.rs index f4e37e6..2325969 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -291,12 +291,7 @@ pub async fn middleware( tracing::debug!("translations: {translations:?}"); if translations.len().unwrap_or(0) == 0 { - return Err(minijinja::Error::new( - minijinja::ErrorKind::MissingArgument, - format!( - "No translations are provided in the translations argument: {translations:?}" - ), - )); + return Ok(minijinja::Value::from_safe_string(String::new())); } let available_languages: Vec = translations