The hreflang attribute (also referred to as rel=”alternate” hreflang=”x” ) tells Google which language you are using on a specific page, so search engines can serve that result to users searching in that language.
hrelang is a simple plugin if you have limited pages in other languages and don’t require a site to be fully multilingual but still benefit from SEO best practices.