The Ukrainian version of a website by law: what Article 27 requires, how it looks in code, and what a check of 60 sites showed

One sentence of the language law holds four requirements for a website, and an owner can break them without knowing: their browser shows Ukrainian, the customer's does not. Article 27, the fines, lang, hreflang and og:locale, how the tool tells Ukrainian from Russian, and six experiments on 60 Ukrainian sites.

The owner of an online shop opens their site and sees Ukrainian. The home page, the catalogue, the cart: all in Ukrainian. They close the tab thinking their site meets the language law.

One of their customers bought a laptop with English Windows and never changed the language of Chrome. She opens the same site and sees Russian. The site decided for her: the browser is not Ukrainian, so Russian must be more convenient. The owner has never seen that page, because their own browser is in Ukrainian. The customer sees it every time, and one day she files a complaint.

There are many such complaints. In the first three quarters of 2025 the office of the Ukrainian Language Ombudsman (the State Language Protection Commissioner) registered 2,227 complaints from citizens, and the largest group, 574 complaints or 26%, was about websites and online shops. The office named the typical case separately: the site has a Ukrainian version, but the Russian one opens by default. That is the story with the browser.

In this post I'll go through what the law asks of a website and what a violation costs, what "loads by default" means in terms of HTML and headers, how the Ukrainian Language Check tells Ukrainian from Russian, and what it found on 60 sites of Ukrainian companies. At the end there is a list of things to check and fix on your own site.

One caveat first: I'm a developer, not a lawyer. I explain the technical side and quote the laws, but this is not legal advice. If you are in a dispute with the Ombudsman, you need a lawyer.

What the law says

One sentence with four requirements

The Verkhovna Rada passed the Law of Ukraine "On Ensuring the Functioning of the Ukrainian Language as the State Language" (No. 2704-VIII) on 25 April 2019. Websites are covered by part six of Article 27. Here is its first paragraph in full (my translation):

Internet representations (including websites and web pages in social networks) of state authorities, local self-government bodies, enterprises, institutions and organisations of state and communal ownership, media registered in Ukraine, and also of business entities that sell goods and services in Ukraine and are registered in Ukraine, are made in the state language. Alongside the version of the internet representation (including websites and web pages in social networks) made in the state language, there may be versions in other languages. The version of the internet representation in the state language must contain no less information in volume and content than the versions in other languages, and must load by default for users in Ukraine.

Split this paragraph into parts and you get four separate requirements:

  1. The site must be in Ukrainian. Not "may have a Ukrainian page somewhere in the menu", but made in the state language.
  2. Other languages are allowed. The law does not ban an English, Polish or Russian version. A shop that sells to Europe can have ten language versions.
  3. The Ukrainian version is not smaller than the others. "No less information in volume and content" means the Ukrainian version must have the same sections, products, delivery and payment terms as the version in another language. A site with a hundred blog posts in Russian and only the home page and contacts in Ukrainian breaks this rule.
  4. Ukrainian opens first. "Load by default for users in Ukraine" means that a person who comes to the site from Ukraine and hasn't chosen anything yet sees Ukrainian. They can switch the language themselves, but the first thing they see must be Ukrainian.

The fourth requirement is the trickiest, because the owner can't see when it's broken. The section about browsers covers it.

Who it applies to

By the text of the article, the rule covers several groups of site owners:

  • state authorities and local self-government bodies;
  • state and communal enterprises, institutions and organisations;
  • media registered in Ukraine;
  • companies and sole proprietors registered in Ukraine that sell goods or services in Ukraine.

The last group covers almost all small businesses: an online shop, a dental clinic's site, a landing page for courses, a car service page. Note the words "web pages in social networks": the rule applies to a company's Instagram or Facebook page too, not only to the website.

For foreign companies that sell in Ukraine through subsidiaries, branches or representative offices, the second paragraph of part six is softer. Their Ukrainian version must contain "sufficient information in volume and content for clear navigation and for disclosing the purpose of the activity". So a full translation is not required, but a person must understand what the company is and how to use the site. Such a version must also load by default.

Part seven of the same article separately requires mobile apps of companies selling goods and services in Ukraine to have a Ukrainian version of the interface.

Since when

The law came into force on 16 July 2019, but not all of its articles started working at once. Businesses got time to rebuild, and the rules for websites have applied since 16 July 2022. So if your site still opens in Russian, you have been breaking the law for more than four years.

What a violation costs

Liability is set by Article 188-52 of the Code of Ukraine on Administrative Offences. Websites fall under its second part, together with education, advertising, transport and healthcare ("in user interfaces of computer programs and websites"). The code sets amounts in "tax-free minimum incomes of citizens". For fines one such minimum equals 17 hryvnias, so in money it looks like this:

SituationIn the codeIn hryvnias
First violationa warning or a fine of 200 to 300 minimumsa warning or UAH 3,400–5,100
Repeat violation within a year after a penaltya fine of 500 to 700 minimumsUAH 8,500–11,900

The words "or a warning if the violation is committed for the first time" matter. In practice the Ombudsman usually issues a warning first and gives time to fix the site. The 2025 figures confirm it: of 706 rulings on administrative offences, 404 ended with a warning, 95 with a fine, and 207 cases were closed. The fine more often goes to those who ignored the warning.

Still, the number of fines is growing. According to the Ombudsman's office, as quoted by Interfax-Ukraine and Chytomo, 101 fines totalling UAH 479,400 have been issued in 2026 so far, while for the whole of 2025 the total was UAH 368,900. The Ombudsman Olena Ivanovska proposed to the government at the end of 2025 and again in 2026 to raise the fines, because in her view the current amounts don't deter violators. As of December 2026 I found no law passed with new amounts. If you read this post later, check the current wording of Article 188-52 at zakon.rada.gov.ua.

How violations are found

The Ombudsman doesn't go around inspecting sites. Most cases start with a complaint: anyone can send one through the Ombudsman's website, with a link and a screenshot. The conclusion: the violation won't be found by an inspector but by your customer. And it will be exactly the customer whose browser is not like yours.

What "by default" means in code

How a site picks the language

To see where the problem hides, you need to know where a site gets the language from at all. There are four options:

  • The page address. /ru/catalog shows Russian, /catalog shows Ukrainian. The simplest and most reliable option: what is in the address is on the page.
  • A cookie from an earlier choice. The person once clicked "RU" in the switcher, the site saved it in a cookie and shows Russian straight away next time. The law allows this: the person chose it themselves.
  • The browser language. With every request, every browser sends an Accept-Language header listing the languages the person supposedly understands. The site reads it and decides on its own.
  • The IP address. The site finds the country by IP and shows that country's language.

The third option, and less often the fourth, cause trouble with the law.

The browser language trap

The Accept-Language header looks like this:

Accept-Language: en-US,en;q=0.9,uk;q=0.8

This line means: "US English is best, then any English with a weight of 0.9, then Ukrainian with a weight of 0.8". The browser builds it from the system settings. A person who bought a laptop with English Windows gets English first in the list, even if they've read Ukrainian all their life. A person who once installed Russian Windows and never reinstalled it will send Russian.

Now picture a site with automatic switching: "if the browser asks for Russian, show the Russian version". The developer did it with good intentions, to make things easier for people. But for a person with Russian Windows, Ukrainian is no longer the default language: Russian is the first thing they see. The law says "for users in Ukraine", not "for users with a Ukrainian browser".

The owner won't notice. Their browser sends Ukrainian, so they see Ukrainian. To see the problem, you have to change the browser language or open the site on someone else's computer.

These settings are often switched on in ready-made modules. In WordPress, the Polylang plugin has an option to detect the browser language, and WPML has a browser language redirect. On Laravel or Symfony sites a single line does something similar:

// Don't: the browser picks the language, not the person
$locale = $request->getPreferredLanguage(['uk', 'ru', 'en']);

The right logic is simpler:

// First visit: Ukrainian. After that: the language the person chose in the switcher
$locale = $request->cookie('locale', 'uk');

So everyone who hasn't chosen sees Ukrainian, the switcher lets them pick another language, and the cookie remembers the choice. If a person picked Russian, the law is not broken: they did it themselves.

The IP address is a similar story. A site that shows Russian to everyone with an IP outside Ukraine usually doesn't break the law, because the rule covers users in Ukraine. But a person in Ukraine with a VPN routed through Poland or Germany will also see another language, and that will be hard to explain in a complaint.

The address doesn't matter

Some owners think the Ukrainian version has to sit at the "main" address, without /ua/ in the path. The law says nothing about addresses; it talks about what opens. Prom.ua is a good example: its Russian version lives at the root prom.ua/, and the Ukrainian one at prom.ua/ua/. But everyone who types prom.ua lands on /ua/, with any browser. The requirement is met, even though the address structure is left over from older times.

So if your site has a historical structure with Russian at the root, you don't have to rebuild all addresses. It's enough to redirect the first visit to the Ukrainian version.

lang: the page language for programs

A visitor sees text. But programs that don't "understand" text read the page too: search engines, screen readers for blind people, the translator built into Chrome. The page tells them its language with an attribute in the first line of HTML:

<html lang="uk">

A screen reader uses this attribute to choose a voice and pronunciation rules. If the attribute is missing or says ru, it will read Ukrainian text with Russian pronunciation, and the person will hear a garbled version of every word. With a wrong attribute, Chrome may offer to "translate from Russian" a page that is already in Ukrainian.

The most common mistake here is lang="ua". It looks logical, since Ukrainian domains end in .ua. But the lang attribute takes a language code from the ISO 639-1 standard, not a country code. The country code of Ukraine in ISO 3166 is indeed UA. The code of the Ukrainian language is different: uk. There is no language code "ua", so to programs lang="ua" means "unknown language". uk-UA is also fine: Ukrainian as used in Ukraine.

hreflang: linking versions for Google

When a site has several language versions, Google needs to understand that /catalog and /ru/catalog are one page in different languages, not two different pages with the same content. For this Google introduced hreflang tags in 2011. They go into the <head> of every version:

<link rel="alternate" hreflang="uk" href="https://example.com/catalog">
<link rel="alternate" hreflang="ru" href="https://example.com/ru/catalog">
<link rel="alternate" hreflang="x-default" href="https://example.com/catalog">

The first line says "the Ukrainian version is here", the second "the Russian one is here", and x-default says which version to show a person whose language matches none of them. For a Ukrainian site it makes sense to put the Ukrainian version there.

The code mistake is the same: hreflang="ua". Google ignores tags with unknown language codes, so such a tag simply doesn't work. Google never learns that the Ukrainian version exists and may show people in Ukraine the Russian page in search results. Technically this is not a violation of the law, since the law talks about what loads, not about search results. But a person who came from Google to a Russian page sees the site in Russian, and their complaint won't contain the word "hreflang".

og:locale: the language of previews in messengers

When you send a link in Telegram or Facebook, the messenger shows a card with a title and a picture. It takes the data from Open Graph tags, and the language of the card is set by this tag:

<meta property="og:locale" content="uk_UA">

The format is a little different here: language and country joined by an underscore, uk_UA. Without this tag Facebook treats the page as English (en_US by default). It barely affects how the site works, so in the tool this check weighs the least.

Title and description

Google shows the page title (<title>) and description (<meta name="description">) in search results. The visitor doesn't see them on the page itself, so they are often forgotten during translation. The result is a site where all the text is Ukrainian, but in search it shows up with a Russian title like "Купить диван недорого в Киеве" ("buy a cheap sofa in Kyiv"). A person who searched in Ukrainian sees a Russian result and picks another.

How to tell Ukrainian from Russian

This is the most interesting technical part of the tool. A program doesn't know languages. How can it decide that "Доставка по Україні" is Ukrainian and "Доставка по Украине" is Russian?

Letters only one language has

The Ukrainian alphabet has four letters that Russian lacks: і, ї, є, ґ, plus the apostrophe. Russian has its own: ы, э, ъ, ё. If a word contains "ї", it's definitely not Russian. If it contains "ы", it's definitely not Ukrainian.

That would be enough if such letters appeared in every word. They don't. Count for yourself: the sentence «Доставка по Україні за 1–3 дні. Оплата при отриманні або карткою на сайті.» ("Delivery across Ukraine in 1–3 days. Pay on receipt or by card on the site.") has 12 words, and only four of them have Ukrainian letters: «Україні», «дні», «отриманні», «сайті». The rest («доставка», «по», «за», «оплата», «при», «карткою», «на») could belong to either language or to both at once.

Words spelled differently

So the tool has a second list: common short words that differ between the languages although they contain no "special" letters. Ukrainian: «що», «та», «або», «як», «якщо», «треба», «кошик», «гривень». Russian: «что», «или», «это», «только», «корзина», «цена». The word «або» ("or") from the sentence above is on the Ukrainian list, and now we have five marked words out of twelve.

The third sign is word endings. Russian «изделие», «консультация», «информацию» end in -ие, -ия, -ию. In Ukrainian the same words are spelled with «і»: «консультація», «інформацію». So the tool treats a word ending in -ия without «і» before the ending as Russian.

Why Russian weighs one and a half times more

Now the same sentence in Russian: «Доставка по Украине за 1–3 дня. Оплата при получении или картой на сайте.» I ran it through the tool: of 12 words only one was marked, «или» ("or"). «Украине» has no «ы», «э» or «ё», and «получении» ends in -ии, which is not on the list of endings.

This is no accident. The Ukrainian letters і, ї, є appear in texts often: «і» is in thousands of words. The Russian ы, э, ъ, ё are much rarer. So for the same amount of text, Ukrainian gives more marked words than Russian. If the tool counted marked words equally, a page that is half Ukrainian and half Russian would look mostly Ukrainian. To make up for this, every marked Russian word counts with a weight of 1.5.

How the decision is made

After counting, the tool decides which language the page is in:

  • If the page has fewer than 30 words, there's nothing to judge by.
  • If fewer than 30% of the words are Cyrillic, the page is in English. The tool treats Latin script as English, and that includes brand and model names. The product name «Ноутбук Apple MacBook Air 13 M3 8/256GB Midnight» has six Latin words and one Cyrillic.
  • If, among the marked words (with the weight), no more than 25% are Russian, the page is Ukrainian. At 75% or more it's Russian. In between it's mixed.
  • Unmarked words are split between the languages in the same proportion as the marked ones. That's where the report's percentages come from: "Ukrainian 88%, Russian 2%, Latin 10%".

What the method can't see

The method works on pages because a page has hundreds of words, and mistakes on single words dissolve. On short phrases it's helpless. «Мама мила раму» is spelled the same in both languages, and the tool honestly answers "unknown". It doesn't recognise «интернет-магазин техники» ("electronics online shop") either, because there are no special letters and no listed words in it, even though any Ukrainian sees at once that it's Russian (Ukrainian writes «інтернет» with «і»). That's why the tool doesn't judge separate headings and buttons but looks at the page as a whole.

The tool step by step

The Ukrainian Language Check works in three steps and takes up to half a minute.

  1. It opens the site as a visitor from Ukraine. The tool loads the page with Accept-Language: uk, follows all redirects and notes where it ended up. Then it opens the same address with an English and with a Russian browser.
  2. It finds the other language versions. It reads the hreflang tags and the language switcher on the page (links with the text "RU", "EN", "Рус", "English" and so on) and loads up to three other versions.
  3. It counts and checks. For each version the tool counts Ukrainian, Russian and Latin words and runs nine checks.

The checks are split into three groups. Each check gives points, 100 in total:

GroupCheckPoints
Ukrainian by defaultThe page for a Ukrainian browser is in Ukrainian20
<html lang> says "uk" and matches the language of the text10
For English and Russian browsers the page stays Ukrainian15
Language versionsA Ukrainian version exists10
The Ukrainian version has at least 85% of the words of the largest version15
Versions are linked with hreflang, Ukrainian marked "uk", not "ua"10
Search and previewsTitle and description in Ukrainian10
og:locale is uk_UA5
No Russian blocks on the Ukrainian page5

The first group weighs the most, 45 points, because that's what the law is about. If a site fails the first check (it doesn't open in Ukrainian) or the completeness check, the verdict can't be "ready" even when the other points are high. A site with perfect hreflang and og:locale but Russian by default breaks the law.

For every failed check the report shows what exactly it found (for example, hreflang="ua-ua" with the address) and a ready line of code to fix it.

Six experiments on 60 sites

On 4 December 2026 I ran 60 addresses of Ukrainian companies through the tool: big electronics shops, marketplaces, banks, delivery services, news sites, city portals. I don't name the sites where I found problems: the point of this post is to show typical mistakes, not to make a blacklist. I do name the sites where everything is fine.

Experiment 1. The big players follow the law

Of 60 addresses, 42 opened, and they were 41 different sites (f.ua redirected to Epicentr). Of these 41 sites, 39 opened in Ukrainian for all three browsers: Ukrainian, English and Russian. None of them switched the language by browser. Prom, Foxtrot, Allo, Epicentr, Citrus, OLX, Hotline, Monobank, PrivatBank: all in Ukrainian with any browser.

The conclusion: for big business the 2022 deadline worked. They met the "by default" requirement, and the problems left are smaller. Typical complaints to the Ombudsman concern smaller businesses, which my sample has few of: small shops on template CMSs where nobody has checked the language module settings since 2018.

Experiment 2. A Russian-only site

One site in the sample, a large parents' forum with classified ads, scored 25 out of 100. The tool found 1,577 words on the home page: 96% Russian, 2% Ukrainian, 2% Latin. It found no Ukrainian version, neither in hreflang nor in the switcher. English and Russian browsers get the same Russian page.

The site got its 25 points for two things: lang="ru" honestly matches the text, and the tool skipped hreflang and the other checks because there are no versions. The verdict: "The site doesn't open in Ukrainian". Whether this site breaks the law depends on whether the owner sells goods or services: a forum with paid ads most likely does. But that's a question for a lawyer.

Experiment 3. The forgotten lang

Three of the 41 sites have no lang attribute at all: a big fashion marketplace, a grocery delivery service and the national postal operator. The text on all three is Ukrainian, and for a visitor everything is fine. But a screen reader doesn't know which language to read in and picks the system language. For a blind person with an English system, the whole site will sound like a set of strange English words.

The fix takes a minute: one word in the template. The tool takes 10 points off for it, and in two cases that made the difference between "ready" and "almost".

Experiment 4. ua-ua next to uk

A big car portal has five hreflang tags:

hreflang="ru-ua" → https://auto.example/
hreflang="ua-ua" → https://auto.example/uk/
hreflang="ru"    → https://auto.example/
hreflang="uk"    → https://auto.example/uk/
hreflang="x-default" → https://auto.example/uk/

The developers apparently wanted to say "Ukrainian in Ukraine" and wrote ua-ua: country-country instead of language-country. The right code would be uk-ua. Here the mistake does no harm, because a correct hreflang="uk" for the same address sits next to it, and Google sees that one. But on sites that only have ua, Google doesn't know about the Ukrainian version at all. The tool fails this check even when a correct tag is present: a wrong tag shows that someone on the team thinks "ua" is a language code, and elsewhere on the site this mistake may be the only tag.

Experiment 5. 83%: why a full translation looks "shorter"

I got the most unexpected result on my own site. The yu.net.ua home page has 608 words in Ukrainian and 692 in English. The Ukrainian version is 88% of the English one. The texts are the same; I translated them sentence by sentence. Where does the difference come from?

To check, I counted the words in the two posts on this blog that exist in both languages. The post about llms.txt: 966 words in Ukrainian, 1,164 in English. The post about embeddings: 5,155 and 6,241. In both cases the Ukrainian version is exactly 83% of the English one.

The reason is how the languages are built. English has articles (a, an, the) in front of most nouns. English builds tenses with auxiliary words, Ukrainian with endings. Compare: «Я написав статтю» (3 words) and "I have written an article" (5 words). «Доставка безкоштовна» (2 words) and "Delivery is free" (3 words). Ukrainian carries the same information in fewer words, so a full translation from English will always look shorter. Russian has no such difference: the languages are built alike, and on sites with both versions the word counts differed by 1–4%.

This explains why the tool asks for 85%, not 100%. It also explains one result from the sample: on the site of a national delivery service the Ukrainian home page has 354 words and the English one 420. That's 84%, one percent below the threshold, and the tool warns "the Ukrainian version is shorter". Most likely this is not a gap in the translation but the same language difference. So a warning in this check (60% to 85%) means "check by hand", not "violation". Open both versions side by side and compare the sections: if every section is in both, all is well. A failure (below 60%) almost always means the Ukrainian version really is missing sections.

Experiment 6. What the tool can't see

The tool couldn't read 18 of the 60 addresses. Most returned a 403 error: the site recognised that the request came from a program, not a person, and blocked access. That's how bot protection such as Cloudflare works. Three more sites didn't respond at all. One electronics shop returned a page where the tool found a single word: all the text there is built by JavaScript in the browser, and the tool reads the HTML as the server sends it.

Hence the limits worth knowing about:

  • The tool can't check sites with strong bot protection. An ordinary small site usually doesn't have it.
  • The tool sees sites that build their text with JavaScript as empty. Google, by the way, sees such pages worse too.
  • The tool changes the browser language but not the IP address. If a site picks the language by country, the check won't show it.
  • The tool checks one page and its language versions, not the whole site. The home page may be Ukrainian while a hundred-post blog is only in Russian.

One more small thing, the one I found most often: 23 of the 37 sites that have Open Graph tags don't set og:locale. It's not a violation of the law and not a problem for visitors, but it shows that on most sites the meta tags were set up once, long ago.

What to check on your site

The list goes in order of importance: first what the law is about, then what helps search and people.

  1. Open the site with another browser language. In Chrome: Settings → Languages, move English to the top, open the site in an incognito window (so an old cookie doesn't get in the way). Then do the same with Russian. If you don't see Ukrainian, look in the language module settings for a browser language detection option and turn it off. Or just run the check: it does this for you.
  2. Compare the versions. Open the menu in Ukrainian and in Russian (or English) side by side. Are the sections the same? Do all products have Ukrainian descriptions? Are the delivery, payment and return terms and the privacy policy translated? The blog and pages added after the first translation are forgotten most often.
  3. Check <html lang>. Press Ctrl+U on any page: the first or second line must have lang="uk" or lang="uk-UA". Not ua, not ru, not empty.
  4. Check hreflang. In the same page source, find hreflang. The Ukrainian version must be marked uk. If you see ua, fix it.
  5. Check the title and description. Find your site in Google: the title and description in the results must be in Ukrainian.
  6. Look for Russian leftovers. The footer, the order form, confirmation emails, error messages, reviews, the chat widget. These parts often live in separate files and miss the translation. The tool shows examples of Russian words if it finds them on the Ukrainian page.
  7. Don't forget social networks. The law names web pages in social networks directly. The description of the page on Instagram and Facebook must be in Ukrainian too.

Try it

Open the Ukrainian Language Check and enter your site's address. In half a minute you'll see what a visitor with a Ukrainian, English and Russian browser sees, how many words of each language are on the page, and which line of code to fix. Check not only the home page but also a product page, a blog post and the delivery page: problems hide there more often.

If the tool found problems and there's nobody to fix them, write to me. I'll make Ukrainian the default language, set up the language switcher, hreflang and meta tags, and translate the remaining texts.

Sources

Need help with your website?

Have a task like the one I wrote about? Tell me about it and I will estimate it and suggest a solution.

Assistant
Online now