@@ -7,6 +7,7 @@ import { NetworkCommunities, NetworkItems } from "../../../../types/network"
77import { isInProduction } from "../../../../utils/helpers"
88import useOptions from "../../hooks/useOptions"
99import BaseSkeleton from "../../../../components/skeleton/base-skeleton"
10+ import { useIntl } from "react-intl"
1011
1112function NetworkNodesQuadrants ( { nodes } : { nodes : NetworkItems } ) {
1213 const [ selectedCentrality , setSelectedCentrality ] = useState ( "degreeCentrality" )
@@ -73,6 +74,7 @@ function NetworkNodesQuadrants({ nodes }: { nodes: NetworkItems }) {
7374
7475function NetworkClustersQuadrants ( { clusters } : { clusters : NetworkCommunities } ) {
7576 const { currentModel } = useOptions ( )
77+ const intl = useIntl ( )
7678
7779 if ( ! clusters ) return null
7880 const data = clusters ?. map ( ( { label, color, metrics } ) => ( {
@@ -94,8 +96,8 @@ function NetworkClustersQuadrants({ clusters }: { clusters: NetworkCommunities }
9496 < Container fluid >
9597 { data && (
9698 < AnalyticsGraph
97- title = "Communities quadrants"
98- description = "Quadrants of the communities strategic diagram"
99+ title = { intl . formatMessage ( { id : "networks.clusters. quadrants.title" } ) }
100+ description = { intl . formatMessage ( { id : "networks.clusters.quadrants.description" } ) }
99101 options = { quadrantOptions }
100102 />
101103 ) }
@@ -104,6 +106,7 @@ function NetworkClustersQuadrants({ clusters }: { clusters: NetworkCommunities }
104106}
105107export default function NetworkQuadrants ( ) {
106108 const { search } = useSearchData ( )
109+ const intl = useIntl ( )
107110
108111 if ( ! search ?. data && search ?. isFetching ) return < BaseSkeleton width = "100%" height = "30rem" className = "fr-my-1v" />
109112
@@ -112,7 +115,7 @@ export default function NetworkQuadrants() {
112115 < NetworkClustersQuadrants clusters = { search ?. data ?. network ?. clusters } />
113116 { ! isInProduction ( ) && < NetworkNodesQuadrants nodes = { search ?. data ?. network ?. items } /> }
114117 < Text className = "fr-mt-1w fr-mb-3w fr-message fr-message--info" size = "xs" >
115- { `For more information about the strategic quadrants see the ` }
118+ { intl . formatMessage ( { id : "networks.clusters. quadrants.faq-link" } ) }
116119 < Link href = "/about/FAQ?question=q63" > { "FAQ" } </ Link >
117120 </ Text >
118121 </ Container >
0 commit comments