{% macro lang_option(lang_name, current_lang) %} {% endmacro %} {% macro supported_source_lang_options(current_lang) %} {% for lang_name in supported_source_languages.keys() %} {{ lang_option(lang_name, current_lang) }} {% endfor %} {% endmacro %} {% macro supported_target_lang_options(current_lang) %} {% for lang_name in supported_target_languages.keys() %} {{ lang_option(lang_name, current_lang) }} {% endfor %} {% endmacro %} SimplyTranslate

SimplyTranslate

{% if engines|length > 1 %}
Translation Engine {% for _engine in engines %} {{ _engine.display_name -}} {% if not loop.last %} {% endif %} {% endfor %}

{% endif %}
{% if use_text_fields %} {% else %} {% endif %}
{% if use_text_fields %} {% else %} {% endif %}
{% if could_not_switch_languages %}
Sorry, {{ engine }} doesn't support switching from autodetect.

{% endif %} {%- if tts_enabled and tts_from is not none -%}
{%- endif -%} {%- if tts_enabled and tts_to is not none -%}
{%- endif -%} {% if translation is not none and "definitions" in translation %}
{% for type, definitions in translation["definitions"].items() %} Definition
    {% for definition_item in definitions %}
  1. {{definition_item["definition"]}}
    {% if "use-in-sentence" in definition_item %} "{{definition_item["use-in-sentence"]}}"
    {% endif %} {% if "synonyms" in definition_item %} {% for synonym_type in definition_item["synonyms"] %} {% if synonym_type != "" %}
    {{synonym_type}}: {% endif %} {{", ".join(definition_item["synonyms"][synonym_type])}}
    {% endfor %} {% endif %}
  2. {% endfor %}
{% endfor %}
{% endif %} {% if translation is not none and "translations" in translation %}
{% for def_type, translations in translation["translations"].items() %} Translation
    {% for word, word_translations in translations.items() %}
  1. {{word}}: {{", ".join(word_translations["words"])}} {{word_translations["frequency"]}}

  2. {% endfor %}
{% endfor %}
{% endif %}