mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
feat(compiler): add source files to xmb/xliff translations (#14705)
Fixes #14190
This commit is contained in:
committed by
Tobias Bosch
parent
09c4cb2540
commit
4054055d0d
@@ -65,8 +65,9 @@ export class Extractor {
|
||||
default:
|
||||
serializer = new compiler.Xliff();
|
||||
}
|
||||
|
||||
return bundle.write(serializer);
|
||||
return bundle.write(
|
||||
serializer,
|
||||
(sourcePath: string) => sourcePath.replace(path.join(this.options.basePath, '/'), ''));
|
||||
}
|
||||
|
||||
getExtension(formatName: string): string {
|
||||
|
||||
Reference in New Issue
Block a user