Skip to content

[i18n] {messages.length, plural, ...} should not be expanded to a list #9072

@vicb

Description

@vicb

From expander.ts

 * { messages.length, plural,
 *   =0 {zero}
 *   =1 {one}
 *   =other {more than one}
 * }
 *
 * will be expanded into
 *
 * <ul [ngPlural]="messages.length">
 *   <template [ngPluralCase]="0"><li i18n="plural_0">zero</li></template>
 *   <template [ngPluralCase]="1"><li i18n="plural_1">one</li></template>
 *   <template [ngPluralCase]="other"><li i18n="plural_other">more than one</li></template>
 * </ul>

The plural should be expanded to a text node and not add element nodes

Metadata

Metadata

Assignees

Labels

area: i18nIssues related to localization and internationalizationtype: bug/fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions