Problem/Motivation

The name and alt text do not follow the description's language. French "Un café à Zürich" gave "Café in Zurich" and English alt text. Arabic input gave English names.

Steps to reproduce

  1. Write the description in French or Arabic.
  2. Generate.

Proposed resolution

The metadata prompts in config/install (ai.ai_prompt.ai_media_metadata__*) say to answer in the language of the description. No update hook, as the module is not released yet.

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."

 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."

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

Remaining tasks

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

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A

AI-Generated: Yes

Issue fork ai_media-3634876

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
StatusFileSize
new98.94 KB
new97.1 KB

  • rajab natshah committed f89cca23 on 1.0.x
    feat: #3634876 Write the name and alternative text in the language of...