mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-07 14:14:18 -07:00
update spanish translations (#2241)
* closes #2237 * closes #2238 * update about page links * test deployment keys
This commit is contained in:
parent
c7dd4f20d7
commit
d3376665bf
8 changed files with 40 additions and 14 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue