update spanish translations (#2241)

* closes #2237

* closes #2238

* update about page links

* test deployment keys
This commit is contained in:
Vim 2023-08-14 15:12:24 -07:00 committed by GitHub
commit d3376665bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 40 additions and 14 deletions

View file

@ -26,7 +26,8 @@ import commentIcon from // @ts-ignore
import githubIcon from // @ts-ignore
'/node_modules/uswds/dist/img/usa-icons/github.svg';
import {USE_DATA_TUTORIAL_LINK, USE_MAP_TUTORIAL_LINK} from '../data/copy/about';
import {USE_DATA_TUTORIAL_LINK, USE_MAP_TUTORIAL_LINK,
USE_DATA_TUTORIAL_LINK_ES, USE_MAP_TUTORIAL_LINK_ES} from '../data/copy/about';
interface IAboutPageProps {
location: Location;
@ -118,7 +119,7 @@ const AboutPage = ({location}: IAboutPageProps) => {
imgSrc={accountBalanceIcon}
header={intl.formatMessage(ABOUT_COPY.HOW_TO_USE_TOOL.USE_MAP_HEADING)}
linkText={ABOUT_COPY.CONTENT.USE_MAP_TUTORIAL}
url={USE_MAP_TUTORIAL_LINK}
url={intl.locale === `es` ? USE_MAP_TUTORIAL_LINK_ES : USE_MAP_TUTORIAL_LINK}
openUrlNewTab={true}
internal={false}>
<p>
@ -131,7 +132,7 @@ const AboutPage = ({location}: IAboutPageProps) => {
imgSrc={fileDownloadIcon}
header={intl.formatMessage(ABOUT_COPY.HOW_TO_USE_TOOL.USE_DATA_HEADING)}
linkText={ABOUT_COPY.CONTENT.USE_DATA_TUTORIAL}
url={USE_DATA_TUTORIAL_LINK}
url={intl.locale === `es` ? USE_DATA_TUTORIAL_LINK_ES : USE_DATA_TUTORIAL_LINK}
openUrlNewTab={true}
internal={false}>
<p>

View file

@ -3,6 +3,7 @@ import {render} from '@testing-library/react';
import {LocalizedComponent} from '../../test/testHelpers';
import AboutPage from '../about';
// Add tests for about page
describe('rendering of the DatasetContainer', () => {
const {asFragment} = render(
<LocalizedComponent>