Filter out links which locale is different from the html document's
This commit is contained in:
parent
faab3ef680
commit
3b99de4972
|
@ -47,6 +47,11 @@ export default {
|
||||||
anchorAttributes.target = linkTarget;
|
anchorAttributes.target = linkTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (locale !== ""
|
||||||
|
&& document.documentElement.lang
|
||||||
|
&& document.documentElement.lang !== locale
|
||||||
|
) { return ; }
|
||||||
|
|
||||||
headerLinks.push(
|
headerLinks.push(
|
||||||
h(
|
h(
|
||||||
`li.headerLink${deviceClass}${keepOnScrollClass}${localeClass}${linkClass}`,
|
`li.headerLink${deviceClass}${keepOnScrollClass}${localeClass}${linkClass}`,
|
||||||
|
|
Loading…
Reference in New Issue