diff --git a/packages/core/src/render3/i18n.ts b/packages/core/src/render3/i18n.ts index 386af20d0a..cff91d2278 100644 --- a/packages/core/src/render3/i18n.ts +++ b/packages/core/src/render3/i18n.ts @@ -834,9 +834,6 @@ export function i18n(index: number, message: string, subTemplateIndex?: number): export function i18nAttributes(index: number, values: string[]): void { const tView = getLView()[TVIEW]; ngDevMode && assertDefined(tView, `tView should be defined`); - ngDevMode && - assertEqual( - tView.firstTemplatePass, true, `You should only call i18nEnd on first template pass`); if (tView.firstTemplatePass && tView.data[index + HEADER_OFFSET] === null) { i18nAttributesFirstPass(tView, index, values); } diff --git a/packages/core/test/render3/i18n_spec.ts b/packages/core/test/render3/i18n_spec.ts index 440e43eb93..0db5621dc7 100644 --- a/packages/core/test/render3/i18n_spec.ts +++ b/packages/core/test/render3/i18n_spec.ts @@ -1359,6 +1359,23 @@ describe('Runtime i18n', () => { expect(fixture.html) .toEqual( '