angular.io icon indicating copy to clipboard operation
angular.io copied to clipboard

i18n: AOT pluralization fails in 2.4.x. Known bug in `normalizeLoadedTemplate`

Open wardbell opened this issue 8 years ago • 1 comments

This will be fixed in patch to Angular v.2.4.x when compiler normalizeLoadedTemplate line changes from false to true. Already fixed in v.4.x

Bad:

       */
      DirectiveNormalizer.prototype.normalizeLoadedTemplate = function (prenomData, template, templateAbsUrl) { ...
   stringify(prenomData.componentType), false, ...

Good:

       */
      DirectiveNormalizer.prototype.normalizeLoadedTemplate = function (prenomData, template, templateAbsUrl) { ...
   stringify(prenomData.componentType), true, ...

wardbell avatar Jan 25 '17 23:01 wardbell

the missing commit in the 2.x branch is https://github.com/angular/angular/commit/e74d8aa

vicb avatar Jan 25 '17 23:01 vicb