---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.2
alternate:
  - https://www.yandex.com/support/webmaster/en/yandex-indexing/locale-pages.md
  - https://www.yandex.com/support/webmaster/tr/yandex-indexing/locale-pages.md
  - href: https://www.yandex.com/support/webmaster/en/yandex-indexing/locale-pages.md
    type: text/markdown
    title: Markdown version
  - href: https://www.yandex.com/support/webmaster/en/llms.txt?revision=e69a3f9ddda6afcea74690a39ee28e063e619fa3
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://www.yandex.com/support/webmaster/en/llms.txt?revision=e69a3f9ddda6afcea74690a39ee28e063e619fa3


# Indexing localized pages


{% note warning %}

Yandex no longer supports using the Sitemap file for language versions. We recommend using localized page markup.

{% endnote %}

## Alternative links {#alternate-links}

If your site has pages in multiple languages or pages intended for various regions, make sure to specify this information for the Yandex indexing bot. Selecting an appropriate page version helps us provide users with relevant search results.


Use alternative links when:

- The pages only differ in the template language. For example, this will work for a blog where posts aren't translated but the navigation elements, header, and footer can be displayed in different languages.
- Pages are in the same language but have minor differences. For example, this is useful if you have slightly different page versions for users from the USA, Ireland, and Australia.
- Each page version is a complete and accurate translation of the original page.
- The language is determined by the user settings, such as the `Accept-Language` header or IP address, or can be selected manually on the site pages. In this case, use the [hreflang="x-default"](#auto) attribute.



## Localized pages markup {#tag}


For each page version, specify links to all its alternative versions. To do this, add the `link` element to the `head` element using the following format:

Example:

```html
<link rel="alternate" hreflang="lang_code" href="url" />
```

<!-- source: en/_includes/popup/id-popup/locale-1.md -->
Use ISO codes to specify the language and region:
<!-- endsource: en/_includes/popup/id-popup/locale-1.md -->


- Select the language code from the [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) list. 
- Select the region code from the [ISO 3166-1 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) (worldwide) or [ISO 3166-2:RU](https://en.wikipedia.org/wiki/ISO_3166-2:RU) (Russian regions) list.




Page versions can be located on different subdomains and domains. For example, a page at `ru.example.ru` is duplicated in English (`en.example.ru`) for users from the USA and in Turkish (`example.com.tr`) for users from Türkiye. Each of the pages should contain three `link` elements with localization attributes:


```html
<head>
    <title>Page title</title>
    <link rel="alternate" hreflang="ru" href="http://ru.example.com/" /> // Page in Russian
    <link rel="alternate" hreflang="en-us" href="http://en.example.com/" /> // Page in English for users from the USA
    <link rel="alternate" hreflang="tr-tr" href="http://example.com.tr/" /> // Page in Turkish for users from Türkiye
</head>
```

The site structure doesn't affect the processing of the `hreflang` attribute. Page versions can be located in different directories:


```xml
<link rel="alternate" hreflang="ru" href="http://example.com/o-kompanii/" />
<link rel="alternate" hreflang="en-us" href="http://example.com/company/about/" />
<link rel="alternate" hreflang="tr-tr" href="http://example.com/firma-hakkinda" />
```


## Pages with automatic language detection {#auto}

If the page language is determined automatically, for example, based on the user's IP address or the Accept-Language header, use `hreflang="x-default"` to include this information to the markup along with other localized pages.



```xml
<link rel="alternate" hreflang="x-default" href="http://example.com/" />
<link rel="alternate" hreflang="ru" href="http://example.com/o-kompanii/" />
<link rel="alternate" hreflang="en-us" href="http://example.com/company/about/" />
<link rel="alternate" hreflang="tr-tr" href="http://example.com/firma-hakkinda" />
```

## Supported languages and encodings {#supported-language}


### Languages

Use two-letter language codes according to the [ISO 639-1](http://ru.wiktionary.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D1%81%D0%BB%D0%BE%D0%B2%D0%B0%D1%80%D1%8C:ISO_639) standard.

{% cut "List of supported languages" %}


<div class="table-without-border">

#|
|| Azerbaijani (az) | Albanian (sq) | English (en) | Arabic (ar)   ||
|| Armenian (hy)       | Bashkir (ba)| Belarusian (be)| Bulgarian (bg) ||
|| Hungarian (hu)      | Greek (el) | Georgian (ka) | Danish (da)    ||
|| Hebrew (he)           | Spanish (es) | Italian (it)| Kazakh (kk)  ||
|| Catalan (ca)     | Latvian (lv) | Lithuanian (lt)  | Macedonian (mk)||
|| German (de)        | Dutch (nl) | Norwegian (no) | Persian (fa) ||
|| Polish (pl)        | Portuguese (pt) | Romanian (ro)  | Russian (ru)    ||
|| Serbian (sr)        | Slovak (sk) | Slovenian (sl) | Tatar (tt)  ||
|| Turkish (tr)        | Ukrainian (uk)| Finnish (fi)    | French (fr)||
|| Croatian (hr)      | Czech (cs)   | Swedish (sv)   | Estonian (et)  ||
|#

</div>


{% endcut %}

### Encodings


{% cut "List of supported encodings" %}

<div class="table-without-border">

#|
|| ARMSCII               | CP-437             | CP-737             | CP-775             ||
|| CP-850                | CP-852             | CP-853             | CP-856             ||
|| CP-857                | CP-858             | CP-860             | CP-861             ||
|| CP-862                | CP-863             | CP-864             | CP-865             ||
|| CP-869                | CP-922             | CP-1046            | CP-1124            ||
|| CP-1125               | CP-1129            | CP-1131            | CP-1133            ||
|| CP-1161               | CP-1162            | CP-1163            | Georgian-ps        ||
|| Geostd-8              | HP_ROMAN8          | IBM-855            | IBM-866            ||
|| ISO-646-CN            | ISO-8859-10        | ISO-8859-11        | ISO-8859-13        ||
|| ISO-8859-14           | ISO-8859-15        | ISO-8859-16        | ISO-8859-2         ||
|| ISO-8859-3            | ISO-8859-4         | ISO-8859-5         | ISO-8859-6         ||
|| ISO-8859-7            | ISO-8859-8         | ISO-8859-9         | JISX0201           ||
|| KOI-8-RU              | KOI8-T             | MAC_ARABIC         | MAC_CENTRALEUROPE  ||
|| MAC_CROATIAN          | MAC_GREEK          | MAC_HEBREW         | MAC_ICELAND        ||
|| MAC_ROMAN             | MAC_ROMANIA        | MAC_THAI           | MAC_TURKISH        ||
|| MULELAO               | MacCyrillic        | NEXTSTEP           | PT154              ||
|| RISCOS-LATIN1         | RK1048             | TCVN               | TDS565             ||
|| UTF-8                 | VISCII             | Windows Georgian   | Windows-1250       ||
|| Windows-1251-k        | Windows-1251-t     | Windows-1251       | Windows-1252       ||
|| Windows-1253          | Windows-1254       | Windows-1255       | Windows-1256       ||
|| Windows-1257          | Windows-1258       |                    |                    ||
|#

</div>

{% endcut %}



#### Learn more


- [How does Yandex process redirects for regional and language versions of the site?](https://www.yandex.com/support/webmaster/en/robot-workings/managing-redirects.md#region)
- [Why is it taking so long for pages to appear in search results?](https://www.yandex.com/support/webmaster/en/robot-workings/robot.md#not-in-search)
- [How do I improve the site's ranking in the search?](https://www.yandex.com/support/webmaster/en/yandex-indexing/rank.md)


<div class="cut-button">

{% cut "Contact support" %}

If the pages don't appear in the search results for a long time or were excluded from them, provide examples of such pages in the form.




<div style="padding: 15px;
      margin: 10px 0;
      background: #FFFFFF;
      border-radius: 10px;
      border: 1px solid var(--yc-color-line-generic);">
<iframe style="background: #FFFFFF;"
      height="700"
      width="100%"
      frameborder="0"
      src="https://forms.yandex.com/surveys/4545/?&theme=Stranitsy_ne_popadayut_v_poisk_ilili_isklyucheny&iframe=1&lang=en">
</iframe>
</div>




{% endcut %}

</div>


<!-- source: en/_includes/footer.md -->
<div width="100%" align="center" class="main-footer"> 
<br><br><br>
You can also go to 
<br><br>




[![](../_assets/logo/logo-pic.svg)](https://webmaster.yandex.com/) [![](../_assets/logo/logo-en.svg)](https://webmaster.yandex.com/)



</div>


<!-- source: en/_includes/styles/footer-style.md -->

<!-- endsource: en/_includes/styles/footer-style.md -->
<!-- endsource: en/_includes/footer.md -->

<!-- source: en/_includes/cut-button-style.md -->

<!-- endsource: en/_includes/cut-button-style.md -->

<!-- source: en/_includes/table-without-border.md -->

<!-- endsource: en/_includes/table-without-border.md -->
