File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,15 +5,18 @@ import { Contribution } from 'components/page-footer/Contribution'
55import { Support } from 'components/page-footer/Support'
66import { useMainContext } from 'components/context/MainContext'
77import { useVersion } from 'components/hooks/useVersion'
8+ import { useRouter } from 'next/router'
89
910export 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 >
You can’t perform that action at this time.
0 commit comments