From cbeb0ba2f6b21e5bb00bd33908aa1b4f1fe2c2e8 Mon Sep 17 00:00:00 2001 From: Christophe Porteneuve Date: Wed, 20 Sep 2023 01:31:41 +0200 Subject: [PATCH 1/2] Add French to fully-translated languages (#6305) --- src/components/Seo.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx index d4f0371280..d7b20cc993 100644 --- a/src/components/Seo.tsx +++ b/src/components/Seo.tsx @@ -21,6 +21,7 @@ const deployedTranslations = [ 'en', 'zh-hans', 'es', + 'fr', // We'll add more languages when they have enough content. // Please DO NOT edit this list without a discussion in the reactjs/react.dev repo. // It must be the same between all translations. From dfd15e87a2c7f94da61cad991712fb6ff2f896ce Mon Sep 17 00:00:00 2001 From: Soichiro Miki Date: Wed, 20 Sep 2023 19:47:47 +0900 Subject: [PATCH 2/2] Remove "robot=noindex" meta tag (#6260) --- src/components/Seo.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx index d7b20cc993..d0dcaab754 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) => (