summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-04-08 14:42:37 +0200
committerSamy Pessé <samypesse@gmail.com>2016-04-08 14:42:37 +0200
commit4e41f96d89d08bd6319d0a3c6439252f002b04d0 (patch)
treeef02cbd2a8eefcbb6ff2323bbf9f00c8324465a0 /lib
parent325c32b4c9743e444968201b00b5f9b8841fa655 (diff)
downloadgitbook-4e41f96d89d08bd6319d0a3c6439252f002b04d0.zip
gitbook-4e41f96d89d08bd6319d0a3c6439252f002b04d0.tar.gz
gitbook-4e41f96d89d08bd6319d0a3c6439252f002b04d0.tar.bz2
Add "languages" property to all json files for multilingual book
Diffstat (limited to 'lib')
-rw-r--r--lib/output/base.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output/base.js b/lib/output/base.js
index d513d71..b60edb1 100644
--- a/lib/output/base.js
+++ b/lib/output/base.js
@@ -240,7 +240,7 @@ Output.prototype.getContext = function() {
output: this.getSelfContext()
},
this.book.getContext(),
- this.book.langs.getContext(),
+ (this.book.isLanguageBook()? this.book.parent: this.book).langs.getContext(),
this.book.summary.getContext(),
this.book.glossary.getContext(),
this.book.config.getContext(),