angular/packages/localize/src
Pete Bacon Darwin 415ad8df13 fix(localize): support downleveled inlined helper localize calls (#40754)
When the downleveling helper function has been  inlined into the
`$localize` call, it is a bit more tricky to parse out the cooked and
raw strings. There was already code to do this but it assumed that
the `cooked` and `raw` items were both arrays.

Sometimes the `raw` array is just a copy of the `cooked` array
via an expression similar to `raw || (raw=tcookedslice(0))`. This
commit changes the `unwrapMessagePartsFromLocalizeCall()`
function to be able to handle such a situation.

Fixes #40702

PR Close #40754
2021-02-09 13:51:53 -08:00
..
localize build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tools fix(localize): support downleveled inlined helper localize calls (#40754) 2021-02-09 13:51:53 -08:00
utils refactor(localize): allow ParsedMessage to hold additional location data (#38536) 2020-08-25 15:13:09 -07:00
translate.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00