Multi-Language Alternate Hreflang SEO tags (M2)

1. Set the CMS Page.
The Magento CMS does not have the scope function to easily translate products. Hence, it is not possible to decide the link between translated CMS pages programmatically. We implemented a category function into the CMS system where every CMS page with the same category tags will be will be identified as alternate pages. For example, there can be three store views with three distinct "contact us" pages:

[storeview] - identifier: contact-us
[storeview] - identifier: neem-contactop
[storeview] - identifier: Kontakt

By giving each of the three CMS pages the category "contactus", the three pages will be linked as related and the hreflang tag will be added automatically.