Pass `translations` to HTML renderer
This commit is contained in:
parent
88289f5fad
commit
96eab23c72
|
@ -635,6 +635,12 @@ fn make_data(
|
||||||
"language".to_owned(),
|
"language".to_owned(),
|
||||||
json!(config.book.language.clone().unwrap_or_default()),
|
json!(config.book.language.clone().unwrap_or_default()),
|
||||||
);
|
);
|
||||||
|
if !config.book.translations.is_empty() {
|
||||||
|
data.insert(
|
||||||
|
"translations".to_owned(),
|
||||||
|
json!(config.book.translations),
|
||||||
|
);
|
||||||
|
}
|
||||||
data.insert(
|
data.insert(
|
||||||
"book_title".to_owned(),
|
"book_title".to_owned(),
|
||||||
json!(config.book.title.clone().unwrap_or_default()),
|
json!(config.book.title.clone().unwrap_or_default()),
|
||||||
|
|
Loading…
Reference in New Issue