Skip to content

Commit

Permalink
fix: translated pages missing left TOC (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Nov 20, 2018
1 parent 54b7662 commit 4640446
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions v1/lib/core/DocsSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ const readCategories = require('../server/readCategories.js');

let languages;

if (fs.existsSync(`../server/languages.js`)) {
languages = require(`../server/languages.js`);
const CWD = process.cwd();
if (fs.existsSync(`${CWD}/languages.js`)) {
languages = require(`${CWD}/languages.js`);
} else {
languages = [
{
Expand Down

0 comments on commit 4640446

Please sign in to comment.