@@ -420,6 +420,11 @@ pub struct BookConfig {
420420 pub description : Option < String > ,
421421 /// Location of the book source relative to the book's root directory.
422422 pub src : PathBuf ,
423+ /// Does this book support more than one language?
424+ // TODO: Remove this field in 0.5, it is unused:
425+ // https://github.com/rust-lang/mdBook/issues/2636
426+ #[ serde( skip_serializing) ]
427+ pub multilingual : bool ,
423428 /// The main language of the book.
424429 pub language : Option < String > ,
425430 /// The direction of text in the book: Left-to-right (LTR) or Right-to-left (RTL).
@@ -434,6 +439,7 @@ impl Default for BookConfig {
434439 authors : Vec :: new ( ) ,
435440 description : None ,
436441 src : PathBuf :: from ( "src" ) ,
442+ multilingual : false ,
437443 language : Some ( String :: from ( "en" ) ) ,
438444 text_direction : None ,
439445 }
@@ -817,6 +823,7 @@ mod tests {
817823 title = "Some Book"
818824 authors = ["Michael-F-Bryan <michaelfbryan@gmail.com>"]
819825 description = "A completely useless book"
826+ multilingual = true
820827 src = "source"
821828 language = "ja"
822829
@@ -855,6 +862,7 @@ mod tests {
855862 title : Some ( String :: from ( "Some Book" ) ) ,
856863 authors : vec ! [ String :: from( "Michael-F-Bryan <michaelfbryan@gmail.com>" ) ] ,
857864 description : Some ( String :: from ( "A completely useless book" ) ) ,
865+ multilingual : true ,
858866 src : PathBuf :: from ( "source" ) ,
859867 language : Some ( String :: from ( "ja" ) ) ,
860868 text_direction : None ,
0 commit comments