From 7af04b222d0341a75ceb0d973de08701abd607bf Mon Sep 17 00:00:00 2001 From: Jieiku <106644+Jieiku@users.noreply.github.com> Date: Thu, 27 Apr 2023 11:06:17 -0700 Subject: [PATCH] Fix multi-ligual json index --- components/site/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, )?;