observe_translate/2

Request a translation of a list of strings. The resulting translations must be in the same order as the request. This notification is handled by modules that interface to external translation services like DeepL or Google Translate. Return {ok, List} | {error, Reason} | undefined.

Type:

first

Return:

#translate{} properties:

  • from: atom
  • to: atom
  • texts: list

Edit on GitHub

Observed by

Modules

mod_translate_deepl

Provides automatic text translation through DeepL as a translation service for Zotonic's mod_translation module.

Modules

mod_translate_argos

Provides automatic translation using a local Argos Translate Python worker as a translation service for Zotonic's mod_translation module.