{% set element = element ?? null %} {% set namespace = namespace is defined ? namespace : 'fields' %} {% namespace namespace %} {% for field in fields %} {% set translatable = field.getIsTranslatable() %} {% if translatable %} {% switch field.translationMethod %} {% case 'site' %} {% set translationDescription = 'This field is translated for each site.'|t('app') %} {% case 'siteGroup' %} {% set translationDescription = 'This field is translated for each site group.'|t('app') %} {% case 'language' %} {% set translationDescription = 'This field is translated for each language.'|t('app') %} {% endswitch %} {% endif %}