Problem: The client is preparing for the launch of their site and during WCAG testing, discovered that the language selector does not contain aria-labels or titles. Despite these attributes being set in the Twig templates for both legacy dropdown and legacy dropdown on click, they are not present in the rendered markup. Solution: We recommend converting the custom language switcher from a .twig template to a PHP-based implementation, as Twig will be removed entirely from WPML in future releases. Regarding the missing aria-labels, this issue has been reported to our development team, and it will be improved. However, we cannot guarantee a specific timeline for this fix.
Please note that this solution might be outdated or not applicable to your particular case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.