{% set fallback = app.request is not null ? app.request.locale : 'en' %} {% set language = model.template.language|default(fallback) %}