feat: #3634876 Write the name and alternative text in the language of the description

Issue: https://www.drupal.org/project/ai_media/issues/3634876

The shipped name, alt and title prompts now ask for the language of the editor's description. The alt prompt says it again after the result, so text inside an image or SVG cannot decide the language. In a test, a French and an Arabic request each got their name and alt in the same language. The text changes in config/install only; no update hook (pre-release).

Before and after

Generating an SVG as an editor from the French description "Un café à Zürich".

Before (1.0.x), the name and the alternative text come back in English: "Coffee in Zürich" and "A stylized illustration of a steaming cup of coffee resting on a wooden table with a blurred cityscape of Zürich in the background."

Before: name Coffee in Zürich, alternative text in English, for the French description Un café à Zürich.

After, both are in French: "Café à Zürich" and "Vue stylisée d'une tasse de café fumante posée sur une table en bois dans un café chaleureux à Zürich, avec une grande fenêtre laissant entrer la lumière du jour."

After: name Café à Zürich, alternative text in French, for the French description Un café à Zürich.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release

🤖 Generated with Claude Code

Edited by Rajab Natshah

Merge request reports

Loading
Loading