Closed Andrew-Marks-Trisept closed 2 years ago
So I was thinking maybe this wasn't related to this library, because it's like that in the extracted source file. I thought maybe something changed in Angular 13.
But then I went back and ran the default ng extract-i18n
script like I used to and sure enough, the space was added properly. Any idea what the difference would be? I assumed your extract-i18n-merge
just ran extract-i18n
in the background.
Maybe something with the alphabetizing of the nodes causes this?
@Andrew-Marks-Trisept can you please check if v1.2.2 fixes this?
Yes, it does. Thanks again!
When there are multiple interpolated statements in a row with a space in between, the space is sometimes removed. This only seems to happen as the message gets more complex. Consider the following examples:
HTML
.ts
xlf Output
The first example works and outputs
Thing 1
-- I think by virtue of the line break in between the<ph>
elements?The second example outputs
Some text Thing1
when it should beSome text Thing 1
.