1- import { getTranslations } from 'next-intl/server ' ;
1+ import { useTranslations } from 'next-intl' ;
22import type { FC } from 'react' ;
33
44import FormattedTime from '#site/components/Common/FormattedTime' ;
@@ -8,26 +8,25 @@ import provideVulnerabilities from '#site/next-data/providers/vulnerabilities';
88
99import VulnerabilityChips from './VulnerabilityChips' ;
1010
11- const EOLTable : FC = async ( ) => {
11+ const EOLTable : FC = ( ) => {
1212 const releaseData = provideReleaseData ( ) ;
13- const vulnerabilities = await provideVulnerabilities ( ) ;
13+ const vulnerabilities = provideVulnerabilities ( ) ;
1414 const EOLReleases = releaseData . filter (
1515 release => release . status === 'End-of-life'
1616 ) ;
1717
18- const t = await getTranslations ( ) ;
18+ const t = useTranslations ( 'components.eolTable' ) ;
1919
2020 return (
2121 < table id = "tbVulnerabilities" >
2222 < thead >
2323 < tr >
2424 < th >
25- { t ( 'components.eolTable.version' ) } (
26- { t ( 'components.eolTable.codename' ) } )
25+ { t ( 'version' ) } ({ t ( 'codename' ) } )
2726 </ th >
28- < th > { t ( 'components.eolTable. lastUpdated' ) } </ th >
29- < th > { t ( 'components.eolTable. vulnerabilities' ) } </ th >
30- < th > { t ( 'components.eolTable. details' ) } </ th >
27+ < th > { t ( 'lastUpdated' ) } </ th >
28+ < th > { t ( 'vulnerabilities' ) } </ th >
29+ < th > { t ( 'details' ) } </ th >
3130 </ tr >
3231 </ thead >
3332 < tbody >
0 commit comments