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): relax error to warning for missing target #41944

Commits on May 4, 2021

  1. fix(localize): relax error to warning for missing target

    Some localization workflows want to use the extracted source translation
    files directy back in the project as a target translation file.
    
    The extraction process generates files that only contain "source" messages
    and not "target" messages. This is actually valid for most translation formats
    but currently the Angular localization process expects target translation files
    to always contain target messages and will stop with an error in this case.
    
    Now, instead of an error, the translation file loader will log a warning,
    and then try to falback to a source message, only erroring if this is also
    missing.
    
    Fixes angular#21690
    petebacondarwin committed May 4, 2021
    Copy the full SHA
    bbba4b1 View commit details
    Browse the repository at this point in the history