# `PhoenixKit.Modules.Publishing.Web.Editor.Translation`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L1)

AI translation functionality for the publishing editor.

Handles translation workflow, Oban job enqueuing, and
translation progress tracking.

# `ai_translation_available?`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L23)

Checks if AI translation is available (AI module enabled + endpoints configured).

# `build_translation_warnings`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L201)

Builds warnings for the translation confirmation modal.

# `do_enqueue_translation`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L129)

Actually enqueues the translation job (after confirmation if needed).

# `enqueue_translation`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L91)

Enqueues translation job with validation and warnings.
Returns {:noreply, socket} for use in handle_event.

# `get_all_target_languages`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L74)

Gets all target languages for translation (all except primary).

# `get_default_ai_endpoint_uuid`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L46)

Gets the default AI endpoint UUID from settings.

# `get_target_languages_for_translation`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L61)

Gets target languages for translation (missing languages only).

# `list_ai_endpoints`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L30)

Lists available AI endpoints for translation.

# `maybe_clear_completed_translation_status`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L325)

Clears completed translation status when switching languages.

# `source_content_blank?`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L254)

Checks if the source content is blank.

# `start_translation_to_current`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.63/lib/modules/publishing/web/editor/translation.ex#L297)

Starts translation to the current (non-primary) language.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
