Fixed localization files reading path out issue

This commit is contained in:
Alexander Cerutti
2021-10-19 00:18:11 +02:00
parent 3290cb1d3f
commit 91bee95bfe

View File

@@ -123,6 +123,10 @@ async function readDirectory(filePath: string) {
return dirContent.map(async (fileName) => {
const content = await fs.readFile(path.resolve(filePath, fileName));
return getObjectFromModelFile(filePath, content, 1);
return getObjectFromModelFile(
path.resolve(filePath, fileName),
content,
2,
);
});
}