angular / angular.io

Website for the Angular project (see github.com/angular/angular for the project repo)
https://angular.io
MIT License
1.03k stars 881 forks source link

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

Open wardbell opened 7 years ago

wardbell commented 7 years ago

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, ...
vicb commented 7 years ago

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