diff --git a/src/landscape/components/LandscapeMapEmbed.js b/src/landscape/components/LandscapeMapEmbed.js index 1caaf7e38..b72f063a4 100644 --- a/src/landscape/components/LandscapeMapEmbed.js +++ b/src/landscape/components/LandscapeMapEmbed.js @@ -20,18 +20,28 @@ import { useSelector } from 'react-redux'; import { useFetchData } from 'terraso-client-shared/store/utils'; import { Typography } from '@mui/material'; +import ExternalLink from 'common/components/ExternalLink'; import { useDocumentTitle } from 'common/document'; import PageLoader from 'layout/PageLoader'; import { fetchLandscapes } from 'landscape/landscapeSlice'; import LandscapeListMap from './LandscapeListMap'; -const LandscapeDescriptionPopup = ({ landscape }) => ( - <> - {landscape.data.name} - {landscape.data.description} - -); +const LandscapeDescriptionPopup = ({ landscape }) => { + const { t } = useTranslation(); + + return ( + <> + {landscape.data.name} + {landscape.data.description} + + + {t('landscape.map_profile_link_text', { name: landscape.data.name })} + + + + ); +}; const LandscapeMapEmbed = () => { const { t } = useTranslation(); diff --git a/src/localization/locales/en-US.json b/src/localization/locales/en-US.json index 722a6c094..990e6b208 100644 --- a/src/localization/locales/en-US.json +++ b/src/localization/locales/en-US.json @@ -334,6 +334,7 @@ "boundaries_document_description": "Updated the boundary of the “{{name}}” landscape", "list_column_actions_description": "Actions", "view_map_title": "Landscape map", + "map_profile_link_text": "View {{name}}’s profile", "boundaries_title": "Update {{name}}’s boundaries", "boundaries_help_geojson": "Don’t have a GeoJSON file?", "boundaries_help_geojson_detail": "<1>Learn how to create one.", diff --git a/src/localization/locales/es-ES.json b/src/localization/locales/es-ES.json index 2914842f2..fb41e561d 100644 --- a/src/localization/locales/es-ES.json +++ b/src/localization/locales/es-ES.json @@ -337,6 +337,7 @@ "boundaries_document_description": "Actualiza la frontera geográfica del paisaje “{{name}}”", "list_column_actions_description": "Acciones", "view_map_title": "Mapa del paisaje", + "map_profile_link_text": "Ver el perfil de {{name}}", "boundaries_title": "Actualiza la información geográfica del {{name}}", "boundaries_help_geojson": "¿No tienes un archivo GeoJSON?", "boundaries_help_geojson_detail": "<1>Aprende a crear uno.",