mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-09-02 05:30:56 -07:00
update Spanish content (#2203)
* update spanish content - closes #2154 * fix download links - add how to use communites document in Spanish * add language toggle on mobile - update snapshots * add instruction and memo in spanish * add translations * update tutorial links * update links to es * remove npm audit * add survey links to "how you can help" * change case back to lower case
This commit is contained in:
parent
980ed8f04a
commit
856e5084db
34 changed files with 3915 additions and 434 deletions
|
@ -13,11 +13,17 @@ export const FED_RECOGNIZED_INDIAN_ENTITIES = `https://www.federalregister.gov/d
|
|||
export const EJSCREEN = 'https://www.epa.gov/ejscreen/how-does-epa-use-ejscreen';
|
||||
|
||||
export const CEJST_INSTRUCT = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/CEQ-CEJST-Instructions.pdf`;
|
||||
export const CEJST_INSTRUCT_ES = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/CEQ-CEJST-Instructions-es.pdf`;
|
||||
|
||||
export const CEJST_MEMO = `https://www.whitehouse.gov/wp-content/uploads/2023/01/M-23-09_Signed_CEQ_CPO.pdf`;
|
||||
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_DATA_TUTORIAL_LINK = `https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Spreadsheet-Tutorial.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';
|
||||
|
||||
export const PAGE = defineMessages({
|
||||
TITLE: {
|
||||
id: 'about.page.title.text',
|
||||
|
@ -80,6 +86,7 @@ export const CONTENT = {
|
|||
description={'Navigate to the About page. This is the list item 2'}
|
||||
values={{
|
||||
link1: linkFn(CEJST_INSTRUCT, false, true),
|
||||
link1es: linkFn(CEJST_INSTRUCT_ES, false, true),
|
||||
}}
|
||||
/>,
|
||||
PARA4:
|
||||
|
@ -144,7 +151,7 @@ export const CONTENT = {
|
|||
description={'Navigate to the About page. This the link to download the how to use map tutorial'}
|
||||
/>,
|
||||
USE_DATA_TUTORIAL: <FormattedMessage
|
||||
id={'about.page.use.map.tutorial'}
|
||||
id={'about.page.use.data.tutorial'}
|
||||
defaultMessage={`
|
||||
Download the spreadsheet tutorial (.pdf 5.4 MB)
|
||||
`}
|
||||
|
@ -152,7 +159,6 @@ export const CONTENT = {
|
|||
/>,
|
||||
};
|
||||
|
||||
export const GITHUB_LINK = 'https://github.com/usds/justice40-tool';
|
||||
|
||||
export const HOW_TO_USE_TOOL = defineMessages({
|
||||
TITLE: {
|
||||
|
@ -244,6 +250,7 @@ export const HOW_YOU_CAN_HELP_LIST_ITEMS = {
|
|||
description={`Navigate to the about page. You will see How you can help list item 1`}
|
||||
values={{
|
||||
link1: linkFn('https://www.surveymonkey.com/r/P3LWTSB', false, true),
|
||||
link1es: linkFn('https://www.surveymonkey.com/r/ZH36CYV', false, true),
|
||||
}}
|
||||
/>,
|
||||
LIST_ITEM_2: <FormattedMessage
|
||||
|
@ -252,6 +259,7 @@ export const HOW_YOU_CAN_HELP_LIST_ITEMS = {
|
|||
description={`Navigate to the about page. You will see How you can help list item 2`}
|
||||
values={{
|
||||
link1: linkFn('https://www.surveymonkey.com/r/6G9TQJ8', false, true),
|
||||
link1es: linkFn('https://www.surveymonkey.com/r/ZPKY8G9', false, true),
|
||||
}}
|
||||
/>,
|
||||
LIST_ITEM_3: <FormattedMessage
|
||||
|
@ -266,6 +274,7 @@ export const HOW_YOU_CAN_HELP_LIST_ITEMS = {
|
|||
values={{
|
||||
link1: linkFn(PAGES_ENDPOINTS.METHODOLOGY, true, false),
|
||||
link2: linkFn('https://www.surveymonkey.com/r/5LZ7MNB', false, true),
|
||||
link2es: linkFn('https://www.surveymonkey.com/r/CGTH5P7', false, true),
|
||||
}}
|
||||
/>,
|
||||
PARA1: <FormattedMessage
|
||||
|
|
|
@ -25,13 +25,9 @@ export const PAGE_INTRO = defineMessages({
|
|||
defaultMessage: `Help improve the tool`,
|
||||
description: 'Navigate to the contact page, this is the text for floating action button',
|
||||
},
|
||||
SURVEY_URL: {
|
||||
id: 'contact.page.fab.survey.link',
|
||||
defaultMessage: 'https://www.surveymonkey.com/r/P3LWTSB',
|
||||
description: 'The footer sticky link that links to the CEJST survey',
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
export const RFI_BOX = defineMessages({
|
||||
TITLE: {
|
||||
id: 'contact.page.request.for.info.box.title',
|
||||
|
@ -87,6 +83,7 @@ export const CENSUS_TRACT_FEEDBACK = {
|
|||
description={'Navigate to the survey. Spanish should substitute <link2> to get Spanish link! Already coded to support'}
|
||||
values={{
|
||||
link1: COMMON_COPY.linkFn('https://www.surveymonkey.com/r/5LZ7MNB', false, true),
|
||||
link1es: COMMON_COPY.linkFn('https://www.surveymonkey.com/r/CGTH5P7', false, true),
|
||||
}}
|
||||
/>,
|
||||
};
|
||||
|
|
|
@ -69,16 +69,31 @@ export const DOWNLOAD_FILES = {
|
|||
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_COMMUNITIES_LIST_PDF, false),
|
||||
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
|
||||
},
|
||||
HOW_TO_COMMUNITIES_ES: {
|
||||
SIZE: 761.8, // KB
|
||||
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_COMMUNITIES_LIST_ES_PDF, false),
|
||||
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
|
||||
},
|
||||
INSTRUCTIONS: {
|
||||
SIZE: 228.4, // KB // Todo: Update when actual file is uploaded
|
||||
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_INSTRUCT_PDF, false),
|
||||
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
|
||||
},
|
||||
INSTRUCTIONS_ES: {
|
||||
SIZE: 173.6, // KB // Todo: Update when actual file is uploaded
|
||||
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_INSTRUCT_ES_PDF, false),
|
||||
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
|
||||
},
|
||||
COMP_CHART: {
|
||||
SIZE: 33.1, // KB
|
||||
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_TOOL_COMP_PDF, false),
|
||||
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
|
||||
},
|
||||
M_23_09_ES: {
|
||||
SIZE: 120.5, // KB
|
||||
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_1_0_M_23_09_SIGNED_PDF, false),
|
||||
LAST_UPDATED: COMMON_COPY.METH_1_0_RELEASE_DATE,
|
||||
},
|
||||
},
|
||||
BETA: {
|
||||
COMMUNITIES_LIST_XLS: {
|
||||
|
@ -590,12 +605,19 @@ export const DOWNLOAD_LINKS = {
|
|||
description={'Navigate to the download page. This is fifth download file link'}
|
||||
values={{
|
||||
link5: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.HOW_TO_COMMUNITIES.URL, false, true),
|
||||
link5es: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.HOW_TO_COMMUNITIES_ES.URL, false, true),
|
||||
howToCommFileSize: <FormattedNumber
|
||||
value={DOWNLOAD_FILES.NARWAL.HOW_TO_COMMUNITIES.SIZE}
|
||||
style="unit"
|
||||
unit="kilobyte"
|
||||
unitDisplay="narrow"
|
||||
/>,
|
||||
howToCommFileSizeEs: <FormattedNumber
|
||||
value={DOWNLOAD_FILES.NARWAL.HOW_TO_COMMUNITIES_ES.SIZE}
|
||||
style="unit"
|
||||
unit="kilobyte"
|
||||
unitDisplay="narrow"
|
||||
/>,
|
||||
}}
|
||||
/>,
|
||||
LINK6: <FormattedMessage
|
||||
|
@ -604,12 +626,19 @@ export const DOWNLOAD_LINKS = {
|
|||
description={'Navigate to the download page. This is sixth download file link'}
|
||||
values={{
|
||||
link6: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.INSTRUCTIONS.URL, false, true),
|
||||
link6es: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.INSTRUCTIONS_ES.URL, false, true),
|
||||
instructions: <FormattedNumber
|
||||
value={DOWNLOAD_FILES.NARWAL.INSTRUCTIONS.SIZE}
|
||||
style="unit"
|
||||
unit="kilobyte"
|
||||
unitDisplay="narrow"
|
||||
/>,
|
||||
instructionsEs: <FormattedNumber
|
||||
value={DOWNLOAD_FILES.NARWAL.INSTRUCTIONS_ES.SIZE}
|
||||
style="unit"
|
||||
unit="kilobyte"
|
||||
unitDisplay="narrow"
|
||||
/>,
|
||||
}}
|
||||
/>,
|
||||
// };
|
||||
|
|
|
@ -4,7 +4,7 @@ import {defineMessages, FormattedMessage} from 'gatsby-plugin-intl';
|
|||
|
||||
import LinkTypeWrapper from '../../components/LinkTypeWrapper';
|
||||
|
||||
import {EJSCREEN, EXEC_ORDER_LINK, FED_RECOGNIZED_INDIAN_ENTITIES, CEJST_INSTRUCT, CEJST_MEMO} from './about';
|
||||
import {EJSCREEN, EXEC_ORDER_LINK, FED_RECOGNIZED_INDIAN_ENTITIES, CEJST_INSTRUCT, CEJST_MEMO, CEJST_INSTRUCT_ES, CEJST_MEMO_ES} from './about';
|
||||
import {boldFn, linkFn, FEEDBACK_EMAIL} from './common';
|
||||
import {PAGES_ENDPOINTS} from '../constants';
|
||||
import {EXPLORE_PAGE_LINKS} from './explore';
|
||||
|
@ -270,10 +270,11 @@ export const FAQ_ANSWERS = {
|
|||
/>,
|
||||
Q1_P3_1: <FormattedMessage
|
||||
id={ 'faqs.page.answers.Q1_P3_1'}
|
||||
defaultMessage={ '<link1>Memorandum</link1> on Using the CEJST for the Justice40 Initiative'}
|
||||
defaultMessage={ '<link1>Memorandum</link1> on using the CEJST for the Justice40 Initiative'}
|
||||
description={ 'Navigate to the FAQs page, this will be an answer, Q1_P3_1'}
|
||||
values={{
|
||||
link1: linkFn(CEJST_MEMO, false, true),
|
||||
link1es: linkFn(CEJST_MEMO_ES, false, true),
|
||||
}}
|
||||
/>,
|
||||
Q1_P3_2: <FormattedMessage
|
||||
|
@ -282,6 +283,7 @@ export const FAQ_ANSWERS = {
|
|||
description={ 'Navigate to the FAQs page, this will be an answer, Q1_P3_2'}
|
||||
values={{
|
||||
link1: linkFn(CEJST_INSTRUCT, false, true),
|
||||
link1es: linkFn(CEJST_INSTRUCT_ES, false, true),
|
||||
}}
|
||||
|
||||
/>,
|
||||
|
@ -379,7 +381,7 @@ export const FAQ_ANSWERS = {
|
|||
/>,
|
||||
Q5_P2_1: <FormattedMessage
|
||||
id={ 'faqs.page.answers.Q5_P2_1'}
|
||||
defaultMessage={ `This decision was made after meaningful and robust consultation with Tribal Nations. This approach is consistent with CEQ’s <link1>Action Plan for Consultation and Coordination with Tribal Nations</link1>, <link3>President Biden’s Memorandum on Tribal Consultation and Strengthening Nation-to-Nation Consultation</link3>, and <link2>Executive Order 13175 on Consultation and Coordination With Indian Tribal Governments</link2>.`}
|
||||
defaultMessage={ `This decision was made after meaningful and robust consultation with Tribal Nations. This approach is consistent with CEQ’s <link1>Action Plan for Consultation and Coordination with Tribal Nations</link1>, <link3> President Biden’s Memorandum on Tribal Consultation and Strengthening Nation-to-Nation Consultation </link3>, and <link2>Executive Order 13175 on Consultation and Coordination With Indian Tribal Governments</link2>.`}
|
||||
description={ 'Navigate to the FAQs page, this will be an answer, Q5_P2_1'}
|
||||
values={{
|
||||
link1: linkFn(EXPLORE_PAGE_LINKS.WH_GOV_TRIBAL_ACTION_PLAN_4_26_21, false, true),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue