It is getting late and I think my mind is shutting down...for the life of me I cannot work out how to change the translation key to work with the value of currentType
.
{% set currentType = site.getCurrentType() %}
{{ 'messages.site.{currentType}'|trans({ '%url%' : path('appbundle_course_url', { 'subdomain': site.subdomain }) }) }}
I'm doing something derpy and will kick myself when I see the solution. I just know it.