Skip to content

Commit ea1881c

Browse files
authored
Don't show contribution section when not English (github#25583)
1 parent cf59025 commit ea1881c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/page-footer/SupportSection.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ import { Contribution } from 'components/page-footer/Contribution'
55
import { Support } from 'components/page-footer/Support'
66
import { useMainContext } from 'components/context/MainContext'
77
import { useVersion } from 'components/hooks/useVersion'
8+
import { useRouter } from 'next/router'
89

910
export const SupportSection = () => {
1011
const { currentVersion } = useVersion()
1112
const { relativePath, enterpriseServerReleases } = useMainContext()
13+
const router = useRouter()
1214

1315
const isDeprecated =
1416
enterpriseServerReleases.isOldestReleaseDeprecated &&
1517
currentVersion.includes(enterpriseServerReleases.oldestSupported)
1618
const isEarlyAccess = relativePath?.includes('early-access/')
19+
const isEnglish = router.locale === 'en'
1720

1821
return (
1922
<section className="container-xl mt-lg-8 mt-6 px-3 px-md-6 no-print mx-auto">
@@ -23,7 +26,7 @@ export const SupportSection = () => {
2326
<Survey />
2427
</div>
2528
)}
26-
{!isDeprecated && !isEarlyAccess && (
29+
{!isDeprecated && !isEarlyAccess && isEnglish && (
2730
<div className="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left pr-4 offset-xl-1">
2831
<Contribution />
2932
</div>

0 commit comments

Comments
 (0)