by marioalmonte on WordPress.org
Translate ARIA attributes in Elementor using WPML, improving the accessibility of your multilingual website.

Configuration interface showing different capture methods and settings
The AccessiTrans – ARIA Translator for WPML & Elementor plugin facilitates the translation of ARIA attributes in sites developed with Elementor and WPML, ensuring that accessibility information is available in all languages of your website.
The plugin allows you to translate the following attributes:
aria-label: To provide an accessible name for an elementaria-description: To provide an accessible descriptionaria-roledescription: To customize the role description of an elementaria-placeholder: For placeholder text in input fieldsaria-valuetext: To provide textual representation of numeric valuesThe plugin offers several capture methods to ensure that all ARIA attributes are detected:
Works with all types of Elementor content:
Tested with:
* WordPress 6.8
* Elementor 3.28.4
* WPML Multilingual CMS 4.7.4
* WPML String Translation 3.3.3
In multilingual websites, accessibility information should be available in all languages. ARIA attributes provide essential accessibility information that helps assistive technologies understand and navigate your website. By making these attributes translatable, you ensure that all users, regardless of language or ability, can access your content effectively.
Elementor indicates: “Set custom attributes for the wrapper element. Each attribute in a separate line. Separate attribute key from the value using | character.”
You can add ARIA attributes in two ways:
Basic format (one attribute per line):
aria-label|Text to translate
Multiline format (multiple attributes):
aria-label|Text to translate
aria-description|Another description
This will generate the corresponding HTML attributes in the frontend:
aria-label=”Text to translate” aria-description=”Another description”
For the best experience and website performance, follow these recommendations:
Browse your site in the primary language only while generating strings for translation. This prevents registering duplicate strings.
Use the Force Refresh function when translations aren’t appearing as expected.
Disable capture methods after initial setup:
For a menu button:
* Attribute: aria-label|Open menu
For a phone link:
* Attribute: aria-label|Call customer service phone
For an icon without text:
* Attribute: aria-label|Send an email
For a slider:
* Attribute: aria-label|Image gallery
* Attribute: aria-description|Navigate through product images
Developed by Mario Germán Almonte Moreno: