mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 09:41:26 -08: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
|
@ -48,7 +48,9 @@ const J40AccordionItem = ({id, title, children}:IJ40AccordionItem) => {
|
|||
onClick={() => setIsExpanded(!isExpanded)}
|
||||
tabIndex={0}
|
||||
>
|
||||
{isExpanded ? 'hide' : 'show'}
|
||||
{isExpanded ?
|
||||
EXPLORE_COPY.SIDE_PANEL_DEMOGRAPHICS.HIDE_DEMOGRAPHICS :
|
||||
EXPLORE_COPY.SIDE_PANEL_DEMOGRAPHICS.SHOW_DEMOGRAPHICS}
|
||||
</a>
|
||||
{ isExpanded ?
|
||||
<img
|
||||
|
|
|
@ -17,7 +17,7 @@ exports[`rendering of TractDemographics component does it render a tract in Alas
|
|||
id="race-header"
|
||||
tabindex="0"
|
||||
>
|
||||
show
|
||||
Show
|
||||
</a>
|
||||
<img
|
||||
alt="expand icon"
|
||||
|
@ -107,7 +107,7 @@ exports[`rendering of TractDemographics component does it render a tract in Alas
|
|||
id="age-header"
|
||||
tabindex="0"
|
||||
>
|
||||
show
|
||||
Show
|
||||
</a>
|
||||
<img
|
||||
alt="expand icon"
|
||||
|
@ -167,7 +167,7 @@ exports[`rendering of TractDemographics component does it render a tract in Amer
|
|||
id="race-header"
|
||||
tabindex="0"
|
||||
>
|
||||
show
|
||||
Show
|
||||
</a>
|
||||
<img
|
||||
alt="expand icon"
|
||||
|
@ -257,7 +257,7 @@ exports[`rendering of TractDemographics component does it render a tract in Amer
|
|||
id="age-header"
|
||||
tabindex="0"
|
||||
>
|
||||
show
|
||||
Show
|
||||
</a>
|
||||
<img
|
||||
alt="expand icon"
|
||||
|
@ -317,7 +317,7 @@ exports[`rendering of TractDemographics component does it render a tract in NYC
|
|||
id="race-header"
|
||||
tabindex="0"
|
||||
>
|
||||
show
|
||||
Show
|
||||
</a>
|
||||
<img
|
||||
alt="expand icon"
|
||||
|
@ -407,7 +407,7 @@ exports[`rendering of TractDemographics component does it render a tract in NYC
|
|||
id="age-header"
|
||||
tabindex="0"
|
||||
>
|
||||
show
|
||||
Show
|
||||
</a>
|
||||
<img
|
||||
alt="expand icon"
|
||||
|
|
|
@ -19,7 +19,9 @@ export const CEJST_MEMO = `https://www.whitehouse.gov/wp-content/uploads/2023/01
|
|||
export const CEJST_MEMO_ES = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/M-23-09_Signed_CEQ_CPO_es.pdf`;
|
||||
|
||||
export const USE_MAP_TUTORIAL_LINK = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Tutorial.pdf`;
|
||||
export const USE_MAP_TUTORIAL_LINK_ES = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Tutorial-es.pdf`;
|
||||
export const USE_DATA_TUTORIAL_LINK = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Spreadsheet-Tutorial.pdf`;
|
||||
export const USE_DATA_TUTORIAL_LINK_ES = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Spreadsheet-Tutorial-es.pdf`;
|
||||
|
||||
export const GITHUB_LINK = 'https://github.com/usds/justice40-tool';
|
||||
export const GITHUB_LINK_ES = 'https://github.com/usds/justice40-tool/blob/main/README-es.md';
|
||||
|
|
|
@ -582,6 +582,16 @@ export const SIDE_PANEL_DEMOGRAPHICS = {
|
|||
defaultMessage={'Elderly over 65'}
|
||||
description={`Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show the demographics: Elderly over 65`}
|
||||
/>,
|
||||
SHOW_DEMOGRAPHICS: <FormattedMessage
|
||||
id={'explore.map.page.side.panel.demo.show'}
|
||||
defaultMessage={'Show'}
|
||||
description={`Show of show / hide accordian`}
|
||||
/>,
|
||||
HIDE_DEMOGRAPHICS: <FormattedMessage
|
||||
id={'explore.map.page.side.panel.demo.hide'}
|
||||
defaultMessage={'Hide'}
|
||||
description={`Hide of show / hide accordian`}
|
||||
/>,
|
||||
};
|
||||
|
||||
export const SIDE_PANEL_TRIBAL_INFO = defineMessages({
|
||||
|
|
|
@ -811,6 +811,10 @@
|
|||
"defaultMessage": "Native Hawaiian or Pacific Islander",
|
||||
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show the demographics: Native Hawiian or Pacific Islander"
|
||||
},
|
||||
"explore.map.page.side.panel.demo.hide": {
|
||||
"defaultMessage": "Hide",
|
||||
"description": "Hide of show / hide accordian"
|
||||
},
|
||||
"explore.map.page.side.panel.demo.hispanic": {
|
||||
"defaultMessage": "Hispanic or Latino",
|
||||
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show the demographics: Hispanic or Latino"
|
||||
|
@ -827,6 +831,10 @@
|
|||
"defaultMessage": "Race / Ethnicity",
|
||||
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show the demograhics race title"
|
||||
},
|
||||
"explore.map.page.side.panel.demo.show": {
|
||||
"defaultMessage": "Show",
|
||||
"description": "Show of show / hide accordian"
|
||||
},
|
||||
"explore.map.page.side.panel.demo.title": {
|
||||
"defaultMessage": "Tract demographics",
|
||||
"description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show the demograhics title"
|
||||
|
|
|
@ -204,9 +204,11 @@
|
|||
"explore.map.page.side.panel.demo.black": "Persona de raza negra o afroamericano",
|
||||
"explore.map.page.side.panel.demo.hawaiian": "Nativo de Hawái o de las Islas del Pacífico",
|
||||
"explore.map.page.side.panel.demo.hispanic": "Hispano o latino",
|
||||
"explore.map.page.side.panel.demo.hide": "esconder",
|
||||
"explore.map.page.side.panel.demo.of.age.mid": "Edades de 10 a 64",
|
||||
"explore.map.page.side.panel.demo.other": "Otra",
|
||||
"explore.map.page.side.panel.demo.race.title": "Raza y etnicidad",
|
||||
"explore.map.page.side.panel.demo.show": "mostar",
|
||||
"explore.map.page.side.panel.demo.title": "Datos demográficos del distrito censal ",
|
||||
"explore.map.page.side.panel.demo.two.or.more": "Dos o más razas",
|
||||
"explore.map.page.side.panel.demo.white": "Personas de raza blanca",
|
||||
|
@ -351,10 +353,10 @@
|
|||
"explore.map.page.side.panel.prio.copy.not.prio.surr.li": "Este distrito censal no se considera desfavorecido. Está rodeado de distritos censales desfavorecidos <bold>PERO</bold> no cumple con el umbral ajustado de bajos ingresos. El ajuste no corresponde a ninguna de las categorías.",
|
||||
"explore.map.page.side.panel.prio.copy.par.prio.surr.no.li": "Este distrito censal es parcialmente desfavorecido. Está rodeado de distritos censales desfavorecidos <bold>PERO</bold> no cumple con el umbral ajustado de bajos ingresos. El ajuste no corresponde a ninguna de las categorías.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.akus": "Los {numAKpoints} pueblos nativos de Alaska y las {numUSpoints} tribus de esta zona que están reconocidas a nivel federal también se consideran desfavorecidos.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.anv": "Los {numAKpoints} pueblos nativos de Alaska y las tribus de esta zona que están reconocidas a nivel federal {también} se consideran desfavorecidos.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.anv": "Los {numAKpoints} pueblos nativos de Alaska y las tribus de esta zona que están reconocidas a nivel federal {also} se consideran desfavorecidos.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.donut": "Este distrito censal se considera desfavorecido. Está rodeado de distritos censales desfavorecidos <bold>Y</bold> cumple con el umbral ajustado de bajos ingresos. El ajuste no corresponde a ninguna de las categorías.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.frt": "Las tierras de las tribus reconocidas a nivel federal que cubren {una parte} de esta extensión se consideran {también} desfavorecidas.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.frt.n.points": "Los {numPoints} que son tribus reconocidas a nivel federal en este distrito censal se consideran {también} desfavorecidos.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.frt": "Las tierras de las tribus reconocidas a nivel federal que cubren {amount} de esta extensión se consideran {also} desfavorecidas.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.frt.n.points": "Los {numPoints} que son tribus reconocidas a nivel federal en este distrito censal se consideran {also} desfavorecidos.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.n.burden": "Este distrito censal se considera desfavorecido porque cumple con el umbral de carga <bold>Y</bold> con el umbral socioeconómico asociado.",
|
||||
"explore.map.page.side.panel.prio.copy.prio.perc.num.points": "Las tierras de las tribus reconocidas a nivel federal que cubren {amount} de este distrito censal y las tribus {numPoints} reconocidas a nivel federal también se consideran desfavorecidas.",
|
||||
"explore.map.page.side.panel.send.feedback.alt.img": "Enviar comentarios",
|
||||
|
@ -362,7 +364,7 @@
|
|||
"explore.map.page.side.panel.send.feedback.title": "Enviar comentarios",
|
||||
"explore.map.page.side.panel.spacer.and": "Y",
|
||||
"explore.map.page.side.panel.tribalInfo.landAreaName": "Nombre del área de la tierra:",
|
||||
"explore.map.page.side.panel.version.title": "Versión de la metodología {versión}",
|
||||
"explore.map.page.side.panel.version.title": "Versión de la metodología {version}",
|
||||
"explore.map.page.title.text": "Explore el mapa",
|
||||
"explore.map.page.under.map.download.draft.ptag.1": "<link1>Descargue las fuentes de datos</link1> utilizadas en la CEJST (.csv,.xlxs,.pdf que describe cómo utilizar la lista y un libro de códigos {downloadFileSize} descomprimido). Última actualización: {dateUpdated}.",
|
||||
"explore.map.page.under.map.note.on.territories.intro": "Nota sobre los territorios de los Estados Unidos",
|
||||
|
|
|
@ -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
Reference in a new issue