diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx index d7b20cc9938..d0dcaab754a 100644 --- a/src/components/Seo.tsx +++ b/src/components/Seo.tsx @@ -27,14 +27,6 @@ const deployedTranslations = [ // It must be the same between all translations. ]; -let shouldPreventIndexing = false; -if ( - siteConfig.languageCode !== 'en' && - !deployedTranslations.includes(siteConfig.languageCode) -) { - shouldPreventIndexing = true; -} - function getDomain(languageCode: string): string { const subdomain = languageCode === 'en' ? '' : languageCode + '.'; return subdomain + 'react.dev'; @@ -70,7 +62,6 @@ export const Seo = withRouter( href={canonicalUrl.replace(siteDomain, getDomain('en'))} hrefLang="x-default" /> - {shouldPreventIndexing && } {deployedTranslations.map((languageCode) => (