fix(compiler-cli): fix relative source paths on windows for extracted msg (#17915)
Fixes #16639
This commit is contained in:
parent
c1474f33be
commit
671a175dfb
|
@ -67,8 +67,9 @@ export class Extractor {
|
||||||
serializer = new compiler.Xliff();
|
serializer = new compiler.Xliff();
|
||||||
}
|
}
|
||||||
return bundle.write(
|
return bundle.write(
|
||||||
serializer,
|
serializer, (sourcePath: string) => this.options.basePath ?
|
||||||
(sourcePath: string) => sourcePath.replace(path.join(this.options.basePath, '/'), ''));
|
path.relative(this.options.basePath, sourcePath) :
|
||||||
|
sourcePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
getExtension(formatName: string): string {
|
getExtension(formatName: string): string {
|
||||||
|
|
Loading…
Reference in New Issue