{% for contenido in contenidos %}
{% set break = false %}
{% set contenido_textos = [] %}
{% for traduccion in contenido.traduccionesContenido %}
{% if (traduccion.idioma.codigo == locale or loop.index == contenido.traduccionesContenido|length) and not break %}
{% set contenido_textos = traduccion %}
{% set break = true %}
{% endif %}
{% endfor %}
{% endfor %}
{{ contenido_textos.cuerpo|striptags|length > 150 ? contenido_textos.cuerpo|striptags|slice(0, 150) ~ '...' : contenido_textos.cuerpo|striptags }}