Problem/Motivation

The name and alt inputs carry no dir. On an Arabic page an English AI answer is right-aligned, and its full stop shows at the start.

Steps to reproduce

  1. Open the generator in Arabic.
  2. Generate with an English description.

Proposed resolution

Set dir="auto" on the AI-written name and alt inputs, and on module help text that may be untranslated, if cheap.

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

  • Before (1.0.x): on an Arabic page, the English alternative text is right to left, full stop first.
     on an Arabic page, the English alternative text is right to left, full stop first.
  • After (one screenshot for #3634872, #3634873 and #3634878 together): the alternative text reads left to right.
    After (one screenshot for #3634872, #3634873 and #3634878 together): the alternative text reads left to right.

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A

AI-Generated: Yes

CommentFileSizeAuthor
#3 3634878-after.png141.3 KBrajab natshah
#3 3634878-before.png138.52 KBrajab natshah

Issue fork ai_media-3634878

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
new138.52 KB
new141.3 KB

  • rajab natshah committed 38aae082 on 1.0.x
    fix: #3634878 Set the text direction of the AI-written name and...
rajab natshah’s picture

Issue summary: View changes
Status: Active » Fixed
Issue tags: +ai_media-1.0.0-rc1

✅ Released ai_media-1.0.0-rc1

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.