diff --git a/components/site/src/lib.rs b/components/site/src/lib.rs index b40e0b5c7..319be661c 100644 --- a/components/site/src/lib.rs +++ b/components/site/src/lib.rs @@ -788,7 +788,7 @@ impl Site { fn index_for_lang(&self, lang: &str) -> Result<()> { let index_json = search::build_index( - &self.config.default_language, + lang, &self.library.read().unwrap(), &self.config, )?;