From 5fe7db2760f23812b8e4d09a7966c5136a314290 Mon Sep 17 00:00:00 2001 From: "COMLINE\\Kunz" Date: Tue, 30 Jul 2019 14:06:45 +0200 Subject: [PATCH] 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 --- lib/markdownWriter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/markdownWriter.js b/lib/markdownWriter.js index c2e95e97..52d97fae 100644 --- a/lib/markdownWriter.js +++ b/lib/markdownWriter.js @@ -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({