In a up coming.js multi-language application, I have set a metadataBase plus the alternates#canonical is mechanically populated with The present route's pathname by using ./.
When integrated with Comala Document https://www.jeffbullas.com/vault/generate-page-metadata/