angular-cn/packages/localize/src
Pete Bacon Darwin 992c70df59 fix(localize): relax error to warning for missing target (#41944)
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 #21690

PR Close #41944
2021-05-04 21:05:54 -07:00
..
localize docs(localize): expose documentation for the `@angular/localize` package (#40317) 2021-03-19 12:36:10 -07:00
tools fix(localize): relax error to warning for missing target (#41944) 2021-05-04 21:05:54 -07:00
utils refactor(localize): allow ParsedMessage to hold additional location data (#38536) 2020-08-25 15:13:09 -07:00
translate.ts docs(localize): expose documentation for the `@angular/localize` package (#40317) 2021-03-19 12:36:10 -07:00