Skip to content

Commit

Permalink
refactor(extractor): fix path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thekip committed Jan 23, 2023
1 parent 0882925 commit 487192a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/src/api/catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ export class Catalog {

const prev = messages[next.id]

const filename = path.relative(this.config.rootDir, next.origin[0])
const filename = path
.relative(this.config.rootDir, next.origin[0])
.replace(/\\/g, "/")

const origin: MessageOrigin = [filename, next.origin[1]];

if (prev.message && next.message && prev.message !== next.message) {
Expand Down

0 comments on commit 487192a

Please sign in to comment.