observe_language_detect/2

Try to detect the language of a translation. Set is_editable_only to false to detect any language, even if the language is not enabled for the site. Return atom() | undefined.

Type:

first

Return:

#language_detect{} properties:

  • text: binary

  • is_editable_only: boolean

Edit on GitHub