Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(localize): enable whitespace preservation marker in XLIFF files #38737

Commits on Sep 8, 2020

  1. fix(localize): enable whitespace preservation marker in XLIFF files

    Whitespace can be relevant in extracted XLIFF translation files.
    Some i18n tools - e.g. CAT tool (OmegaT) - will reformat
    the file to collapse whitespace if there is no indication to tell it
    not to.
    
    This commit adds the ability to specify "format options" that are passed
    to the translation file serializer. The XLIFF 1.2 and 2.0 seralizers have
    been updated to accept `{"xml:space":"preserve"}` format option which will
    by added to the `<file>` element in the serialized translation file during
    extraction.
    
    Fixes angular#38679
    petebacondarwin committed Sep 8, 2020
    Copy the full SHA
    219dc80 View commit details
    Browse the repository at this point in the history