Also called: hreflang tags
If your site has the same page in several languages or for several countries (say English and Spanish, or UK and US prices), hreflang links the versions. Each version lists itself and every alternative with a code such as en, es or en-GB, in the page's <head>, in HTTP headers or in your sitemap.
The links must go both ways: if the English page points to the Spanish one but not back, Google may ignore the tags. Add an x-default version for visitors whose language matches none of them.
It doesn't translate anything, and Google says it doesn't use hreflang to detect a page's language, so each version must really be written in its language. Most single-language local businesses don't need it.
Sources
- Tell Google about localized versions of your page(opens in a new tab) · Google Search Central