-
-
Notifications
You must be signed in to change notification settings - Fork 374
Description
I have a template (Extending other) with the following translated message in a block, in ICU message format:
{{ '{visited, plural, =0 {Nobody visited this room yet} one {1 person visited this room} other {# people visited this room} }'|trans({ 'visited': 6 }) }}
Twig components update 2.8.1 broke the template with linter error:
A template that extends another one cannot include content outside Twig blocks. Did you forget to put the content inside a {% block %} tag?
I have narrowed it down to {#
existing in a string in a template - looks like some code comments removing code got bugged. Changing the string to:
{{ '{visited, plural, =0 {Nobody visited this room yet} one {1 person visited this room} other { # people visited this room} }'|trans({ 'visited': 6 }) }}
or
{{ "{visited, plural, =0 {Nobody visited this room yet} one {1 person visited this room} other {\# people visited this room} }"|trans({ 'visited': 6 }) }}
resolves the issue, but it definitely is an unexpected regression.