HTML language attributes and screen reader testing
Here is a simple screen reader ready page with 30 languages spoken throughout Europe, with the locale and country code and included round flag for each country. Use it along with Polylang to create and test content in multiple languages.
Table of contents
Supported languages
The 24 official languages of the European Union
According to the Wikipedia article Languages of the European Union there are 24 official languages spoken in EU. The language selector is located in the WordPress editor’s top toolbar:
1. First select
more and then
language
2. Then type a valid language attribute or code like en or fr
Table of EU languages
Here is a list of the 24 supported languages, an example text, locale, the code you should enter as language attribute and their corresponding round flag.
Note: When demoing tables in NVDA, you may consider disabling reading out table cell coordinates and links as hearing “Example Column 2” before each language sample can be distracting and not relevant.
Other languages commonly spoken in Europe
| Language | Language link with lang attribute | Locale | Code | Flag |
|---|---|---|---|---|
| Albanian | Shqipja flitet shpesh në Shqipëri. | sq_AL | sq | |
| Norwegian | Norsk snakkes ofte i Norge. | nb_NO | nb | |
| Russian | В России часто говорят на русском языке. | ru_RU | ru | |
| Serbo-Croatian | Srpskohrvatski se često govori u Srbiji. | sr_RS | sr | |
| Turkic | Türkçe, Türkiye’de sıklıkla konuşulur. | tr_TR | tr | |
| Ukrainian | Українська мова часто використовується в Україні. | uk_UA | uk |
Resources and credits
Languages of the European Union – Wikipedia
Reference on the EU’s 24 official working languages, multilingual policies, and administrative translation standards across European Union institutions.
Round Flags – GitHub
Open-source collection of over 300 minimal circular SVG country flags. Accessible via ISO 3166-1 alpha-2 CDN paths or npm package installation.
Locale Codes Data – SimpleLocalize
Developer resource providing JSON datasets of global locale codes, mapping ISO 639 languages and ISO 3166 countries to currencies and timezones.
Polylang – WordPress Plugin Directory
Lightweight translation plugin enabling multilingual content management across custom post types, taxonomies, and navigation menus.
NVDA Screen Reader – NV Access
Official source for NVDA, an open-source Windows screen reader providing full accessibility, braille output, and multi-language speech support for the blind.
Language Packs for Windows – Microsoft Support
Technical guide detailing display language installation, keyboard layout configurations, and localized input support across Windows operating systems.
Complete Guide to Narrator – Microsoft Support
Official technical documentation for Windows Narrator, detailing built-in screen reader settings, keyboard shortcuts and scan mode.
