i18n-polyfill icon indicating copy to clipboard operation
i18n-polyfill copied to clipboard

Generated XLIFF file doesn't respect original identation

Open alfaproject opened this issue 6 years ago • 0 comments

My original file after ng xi18n has this kind of format:

      <trans-unit id="5e6548eb9cbb0467c307b4079bc989cd21f44355" datatype="html">
        <source>This field is required</source>
      </trans-unit>
      <trans-unit id="bab5e4d5a5641055b05160f8cdc95de7a2289140" datatype="html">
        <source>This field must be an email</source>
      </trans-unit>

But after running ngx-extractor the format changes to

      <trans-unit id="5e6548eb9cbb0467c307b4079bc989cd21f44355" datatype="html">
        <source>This field is required</source>
      </trans-unit><trans-unit id="bab5e4d5a5641055b05160f8cdc95de7a2289140" datatype="html">
        <source>This field must be an email</source>
      </trans-unit>

It's not the end of the world because I can run a script to make it prettier, but it's a bit annoying for code review.

Is there any way to keep the same format as the ng xi18n?

alfaproject avatar Feb 13 '18 10:02 alfaproject