enonic/app-contentstudio

Suggest content localisation

Closed this issue · 0 comments

When user localises a content in a layer, show a dialog: "Translate the content to <language of the layer>?" (see conditions for showing the dialog below). If user answers "No", close the dialog and don't do anything (we may add "Translate" button for explicit translation later on). If "Yes", ask Assistant to translate texts in all text inputs and populate populate them with the results.

Conditions for showing the dialog (all of these should be met):

  • AI Assistant is installed and active
  • Content is in a layer
  • Layer has a language
  • User clicks "Localise"
  • There's at least one text input (TextLine, TextArea or HtmlArea)
  • At least one of these inputs is not empty