File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,18 @@ import { Contribution } from 'components/page-footer/Contribution'
5
5
import { Support } from 'components/page-footer/Support'
6
6
import { useMainContext } from 'components/context/MainContext'
7
7
import { useVersion } from 'components/hooks/useVersion'
8
+ import { useRouter } from 'next/router'
8
9
9
10
export const SupportSection = ( ) => {
10
11
const { currentVersion } = useVersion ( )
11
12
const { relativePath, enterpriseServerReleases } = useMainContext ( )
13
+ const router = useRouter ( )
12
14
13
15
const isDeprecated =
14
16
enterpriseServerReleases . isOldestReleaseDeprecated &&
15
17
currentVersion . includes ( enterpriseServerReleases . oldestSupported )
16
18
const isEarlyAccess = relativePath ?. includes ( 'early-access/' )
19
+ const isEnglish = router . locale === 'en'
17
20
18
21
return (
19
22
< 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 = () => {
23
26
< Survey />
24
27
</ div >
25
28
) }
26
- { ! isDeprecated && ! isEarlyAccess && (
29
+ { ! isDeprecated && ! isEarlyAccess && isEnglish && (
27
30
< div className = "col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left pr-4 offset-xl-1" >
28
31
< Contribution />
29
32
</ div >
You can’t perform that action at this time.
0 commit comments