Skip to content

Commit

Permalink
chore: always add alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 12, 2023
1 parent 0688d0e commit 6526b3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runtime/sitemap/urlset/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ export function normaliseI18nSources(sources: SitemapSourceResolved[], { autoI18
})
.flat()
.filter(Boolean) as AlternativeEntry[]
// default and original locale are 2
if (alternatives.length > 2)
if (alternatives.length)
url.alternatives = alternatives
}
return <SitemapUrl> {
Expand Down

0 comments on commit 6526b3c

Please sign in to comment.