For the question that started the thread: MSLS will add “alternate” links for the “hreflang” in the header. As an example, the output at https://msls.co/:
<link rel="alternate" hreflang="de" href="https://msls.co/de/" title="Deutsch" />
<link rel="alternate" hreflang="en" href="https://msls.co/" title="English" />
You can customize the outcome by using filter-hooks:
For a single result with no translation
add_filter( 'mlsl_output_get_alternate_links_default', function( string $default ) {
// your code here
return $default;
}?);
For an array of contents including the current content
add_filter( 'mlsl_output_get_alternate_links_arr', function ( array $arr ) {
// your code here
return $arr;
}?);