Skip to content
Snippets Groups Projects
Commit 5fe7db27 authored by COMLINE\Kunz's avatar COMLINE\Kunz
Browse files

fix(markdownwriter.js): use path function to resolve the path

the i18n path was build by strings. now it use path to resolve it

fix #157
parent 981f1b00
Branches
Tags
No related merge requests found
......@@ -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({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment