Problem:
The client's site audit indicated that the flags of the WPML language switcher do not have image alt attributes.
Solution:
If you're experiencing an issue where your WPML language switcher flags are missing alt attributes, we recommend checking out our errata page on this topic: Missing ALT tag for flag image in a language switcher.
Before applying any changes, please ensure you take a full backup of your site.
As an alternative solution, you can configure a language switcher to display flags only, which will automatically include the ALT attribute for the images.