mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-30 16:01:41 -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
|
@ -107,6 +107,10 @@
|
|||
"defaultMessage": "The tool's data is available for <link1>download</link1>. This data can be used to filter by state or county.",
|
||||
"description": "Navigate to the About page. This is the paragraph 4"
|
||||
},
|
||||
"about.page.use.data.tutorial": {
|
||||
"defaultMessage": "Download the spreadsheet tutorial (.pdf 5.4 MB)",
|
||||
"description": "Navigate to the About page. This the link to download the how to use map tutorial"
|
||||
},
|
||||
"about.page.use.map.heading": {
|
||||
"defaultMessage": "Using the map",
|
||||
"description": "Navigate to the About page. This is the sub heading of Using the map"
|
||||
|
@ -116,7 +120,7 @@
|
|||
"description": "Navigate to the About page. This is the paragraph of Using the map"
|
||||
},
|
||||
"about.page.use.map.tutorial": {
|
||||
"defaultMessage": "Download the spreadsheet tutorial (.pdf 5.4 MB)",
|
||||
"defaultMessage": "Download the CEJST tutorial (.pdf 9.6 MB)",
|
||||
"description": "Navigate to the About page. This the link to download the how to use map tutorial"
|
||||
},
|
||||
"common.pages.alerts.additional_docs_available.description": {
|
||||
|
@ -259,10 +263,6 @@
|
|||
"defaultMessage": "The best way to contact the Council on Environmental Quality (CEQ) is by filling out <link1>this form</link1>.",
|
||||
"description": "Navigate to the survey. Spanish should substitute <link2> to get Spanish link! Already coded to support"
|
||||
},
|
||||
"contact.page.fab.survey.link": {
|
||||
"defaultMessage": "https://www.surveymonkey.com/r/P3LWTSB",
|
||||
"description": "The footer sticky link that links to the CEJST survey"
|
||||
},
|
||||
"contact.page.fab.survey.text": {
|
||||
"defaultMessage": "Help improve the tool",
|
||||
"description": "Navigate to the contact page, this is the text for floating action button"
|
||||
|
@ -1688,7 +1688,7 @@
|
|||
"description": "Navigate to the FAQs page, this will be an answer, Q1_P3"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"faqs.page.answers.Q1_P3_2": {
|
||||
|
@ -1764,7 +1764,7 @@
|
|||
"description": "Navigate to the FAQs page, this will be an answer, Q5_P2"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"faqs.page.answers.Q6_P1": {
|
||||
|
|
File diff suppressed because it is too large
Load diff
2770
client/src/intl/es_3.17.23-translated-final.json
Normal file
2770
client/src/intl/es_3.17.23-translated-final.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,11 +1,13 @@
|
|||
const fs = require('fs');
|
||||
const englishJson = require('./es_5.4.22-translated-final.json');
|
||||
|
||||
// Place nested translation file
|
||||
const nestedTranslation = require('./es_3.17.23-translated-final.json');
|
||||
|
||||
// placeholder for fixed es json file
|
||||
const fixedEs = {};
|
||||
|
||||
// loop through incorrect es.json file modify
|
||||
for (const [key, value] of Object.entries(englishJson)) {
|
||||
// loop through nested es.json file and "flatten"
|
||||
for (const [key, value] of Object.entries(nestedTranslation)) {
|
||||
fixedEs[key] = value.defaultMessage;
|
||||
};
|
||||
|
||||
|
@ -14,8 +16,8 @@ console.log(fixedEs);
|
|||
// convert JSON object to string
|
||||
const fixedEsString = JSON.stringify(fixedEs);
|
||||
|
||||
// write JSON string to a file
|
||||
fs.writeFile('esNoNesting.json', fixedEsString, (err) => {
|
||||
// write the flattened (no nesting) translated JSON string to a file
|
||||
fs.writeFile('esFlattened.json', fixedEsString, (err) => {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue