{# Only output the widget if the contenttype is translatable. So, it must have a 'locale' field. #} {% if app.config.get('contenttypes/'~ app.request.get('contenttypeslug') ~ "/fields/locale") %}
Currently selected: {{ flag_icon(currentkey) }} {{ current.get('label') }} ({{ current.get('slug') }})