{% comment %} Renders content when not loading. When user has typed a partial query that is below minimum_query_length, gives hint about length needed to search. {% endcomment %} {% load i18n %} not_loading: function(data, escape){ {% if widget.minimum_query_length > 0 %} if (data.input && data.input.length > 0) { return '
' + '{% blocktranslate with min_chars=widget.minimum_query_length %}Type at least {{ min_chars }} characters to search{% endblocktranslate %}' + '
'; } {% endif %} },