Skip to content

Commit e3d67ec

Browse files
committed
patch
1 parent b3fe8bb commit e3d67ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/PageMetadata.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ const PageMetadata = ({
9494
))}
9595
<link rel="canonical" key={canonical} href={canonical} />
9696
<link rel="alternate" hrefLang="x-default" href={xDefault} />
97-
{locales.filter(isLocaleValidISO639_1).map((loc) => (
97+
{locales.map((loc) => (
9898
<link
9999
key={loc}
100100
rel="alternate"
101-
hrefLang={loc}
101+
hrefLang={isLocaleValidISO639_1(loc) ? loc : undefined}
102102
href={getFullUrl(loc, path)}
103103
/>
104104
))}

0 commit comments

Comments
 (0)