Skip to content

Commit

Permalink
feat: show correct relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
Spittal committed Sep 2, 2021
1 parent 8d55c13 commit 05442cb
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 73 deletions.
6 changes: 3 additions & 3 deletions dist/vue-i18n-extract.modern.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vue-i18n-extract.modern.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/vue-i18n-extract.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vue-i18n-extract.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/create-report/language-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function readLanguageFiles (src: string): SimpleFile[] {
langObj = eval(fs.readFileSync(langPath, 'utf8'));
}

const fileName = f.replace(process.cwd(), '');
const fileName = f.replace(process.cwd(), '.');

return { path: f, fileName, content: JSON.stringify(langObj) };
});
Expand Down
2 changes: 1 addition & 1 deletion src/create-report/vue-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function readVueFiles (src: string): SimpleFile[] {
}

return targetFiles.map((f) => {
const fileName = f.replace(process.cwd(), '');
const fileName = f.replace(process.cwd(), '.');
return { fileName, path: f, content: fs.readFileSync(f, 'utf8') };
});
}
Expand Down
Loading

0 comments on commit 05442cb

Please sign in to comment.