9.15 WCAG 2.1 Success Criterion 3.1.2 - Language of Parts
Write content so that the language of all passages and phrases can be clearly understood. Is it in English? French? Japanese? This will enable screen readers to pronounce each item in the correct language.
Before Rectification
In the example above, the majority of the website is in English. However, a small section is in German. In this case, it is essential to define this change in language, so that screen readers can detect the change and pronounce correctly.
After Rectification
The image above shows how this code should look like so that the screen readers can detect and pronounce the words using the proper languages.
WCAG 2.1 Reference:https://www.w3.org/WAI/WCAG21/Understanding/language-of-parts