Skip to content

Commit

Permalink
fix(markdownwriter.js): use path function to resolve the path
Browse files Browse the repository at this point in the history
the i18n path was build by strings. now it use path to resolve it

fix #157
  • Loading branch information
COMLINE\Kunz committed Jul 30, 2019
1 parent 981f1b0 commit 5fe7db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/markdownWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ const generateMarkdown = function(filename, schema, schemaPath, outDir, dependen
outDir = outDir ? outDir : path.resolve(path.join('.', 'out'));
let i18nPath;
if (consoleArgs !== undefined && consoleArgs.i !== undefined){
i18nPath=consoleArgs.i ;
i18nPath=path.resolve(consoleArgs.i) ;
} else {
i18nPath=__dirname + '/locales';
i18nPath=path.resolve(path.join(__dirname, 'locales'));
}
console.log(filename);
i18n.configure({
Expand Down

0 comments on commit 5fe7db2

Please sign in to comment.