Updated: Comment #N
trans tags. We should at least make this more obvious. Trans tags are by design only meant to deal with simple variables, mostly strings.brought up that it's pretty easy to end up with "Array" on the page when using
Expand the exception handling in the trans token parser to throw an exception for arrays/render arrays. See \Drupal\Core\Template\TwigTransTokenParser::checkTransString() for the existing error handling.
- Patch review
User interface changes
Not really an API change, just a DX improvement.