{# Settings → Translation (issue #133, restyled #379): the installation's preferred target language (a string override: "inherit" writes NULL, a language writes the override) and the auto-translate tri-state as a switch. Self-contained: renders from _settings_context. #} {% from "settings/_switch.html" import tri_switch %}

Translation

Translate finished transcripts into your preferred language with the configured LLM. Each translation is generated from the transcript as it is at that moment; if you edit the transcript afterwards, the translation is marked out of date and you can re-translate from the run page. Changes here apply to your next run, no restart needed.

{% for error in translation_errors %} {% endfor %} {% if not translation_llm_open %}

Translation needs the LLM: turn on LLM transcript enhancement above to use it.

{% endif %}

The language transcripts are translated into — the default for every Translate button and for automatic translation.

{{ tri_switch( name="translation_autogenerate", label="Translate new runs automatically", help_text="Translates the transcript as it is when the pipeline finishes — re-translate after you finish corrections. Runs whose detected language already matches the preferred language are skipped.", state=translation_autogenerate_state, effective=translation_autogenerate_env_default if translation_autogenerate_state == "inherit" else (translation_autogenerate_state == "on"), env_default=translation_autogenerate_env_default, ) }}