Skip to content

[Image v3] Add a lang attribute on image that contain text in foreign language #2728

Open
@renow-luxembourg

Description

@renow-luxembourg

Feature Request

Current Behavior :
Some informative image contain text in foreign language.
If we follow the WCAG/RGAA/RAWeb1 rules, the alternative text should contain at least the visible texte of the informative image.
But for the moment, in the image component, we can't define a language for the alternative text.
This aims to cause that the image alternative is not well rendered to assistive tool (like the NVDA screen reader)

Expected behavior/code :
We should be able to add a lang attribute for each image.

Environment

Possible Solution :
Add a lang attribute on the 'img' tag based on the language defined in the "advanced" tab of the asset property

Additional context :
WCAG 2.1 : Technique H37 (https://www.w3.org/WAI/WCAG21/Techniques/html/H37)
WCAG 2.1 : 3.1.2 Language of Parts (https://www.w3.org/WAI/WCAG21/Understanding/language-of-parts)
WCAG 2.1 : Technique H58 (https://www.w3.org/WAI/WCAG21/Techniques/html/H58)
RGAA 4.1.2 / RAWeb 1 : 8.7.1 https://accessibilite.public.lu/en/raweb1/criteres.html#test-8-7-1
RGAA 4.1.2 / RAWeb 1 : 1.1.1 https://accessibilite.public.lu/en/raweb1/criteres.html#test-1-1-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions