End-to-end working localization (#336)

* End-to-end localization working
* Update package.json
* fix FormattedMessage confusion by using the `FormattedMessage` from `gatsby-plugin-intl` NOT `react-intl`
* TODO: `client/src/intl/es.json` should be generated from a translation tool.
* Update package-lock.json
This commit is contained in:
TomNUSDS 2021-07-14 12:05:18 -07:00 committed by GitHub
commit cfce0dc826
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 523 additions and 162 deletions

View file

@ -1,6 +1,114 @@
{
"71L0pp": {
"areasOfInterest.climate": {
"defaultMessage": "Climate change",
"description": "item in areasOfInterest list"
},
"areasOfInterest.energy": {
"defaultMessage": "Clean energy and energy efficiency",
"description": "item in areasOfInterest list"
},
"areasOfInterest.housing": {
"defaultMessage": "Affordable and sustainable housing",
"description": "item in areasOfInterest list"
},
"areasOfInterest.pollution": {
"defaultMessage": "Remediation of legacy pollution",
"description": "item in areasOfInterest list"
},
"areasOfInterest.training": {
"defaultMessage": "Training and workforce development",
"description": "item in areasOfInterest list"
},
"areasOfInterest.transit": {
"defaultMessage": "Clean transit",
"description": "item in areasOfInterest list"
},
"areasOfInterest.water": {
"defaultMessage": "Clean water infrastructure",
"description": "item in areasOfInterest list"
},
"header.about": {
"defaultMessage": "About",
"description": "Navigate to the about page"
},
"header.contact": {
"defaultMessage": "Contact",
"description": "Navigate to the Contact page"
},
"header.explore": {
"defaultMessage": "Explore the tool",
"description": "Navigate to the Explore the tool page"
},
"header.methodology": {
"defaultMessage": "Methodology",
"description": "Navigate to the Methodology page"
},
"header.timeline": {
"defaultMessage": "Timeline",
"description": "Navigate to the Timeline page"
},
"header.title": {
"defaultMessage": "Justice40",
"description": "Title of the project"
"description": "Title in header"
},
"index.aboutContent.header": {
"defaultMessage": "About Justice40",
"description": "h1 header on About page"
},
"index.aboutContent.p1": {
"defaultMessage": "In an effort to address historical environmental injustices, President Biden created the Justice40 Initiative on January 27, 2021. The Justice40 Initiative directs 40% of the benefits from federal investments in seven key areas to overburdened and underserved communities.",
"description": "paragraph 1 of main content on index page"
},
"index.aboutContent.p2": {
"defaultMessage": "Federal agencies will prioritize benefits using a new climate and economic justice screening tool. This screening tool will be a map that visualizes data to compare the cumulative impacts of environmental, climate, and economic factors. It is being developed by the Council on Environmental Quality (CEQ) with guidance from environmental justice leaders and communities affected by environmental injustices. The first version of the screening tool will be released in July 2021. However, the screening tool and data being used will be continuously updated to better reflect the lived experiences of community members.",
"description": "paragraph 2 of main content on index page"
},
"index.aboutContent.p3": {
"defaultMessage": "Read more about the Justice40 Initiative in President Bidens {presidentLink}",
"description": "paragraph 3 of main content on index page"
},
"index.presidentalLinkLabel": {
"defaultMessage": "Executive Order on Tackling the Climate Crisis at Home and Abroad.",
"description": "Link url to presidential actions executive order. Part of paragraph 3"
},
"index.presidentalLinkUri": {
"defaultMessage": "https://www.whitehouse.gov/briefing-room/presidential-actions/2021/01/27/executive-order-on-tackling-the-climate-crisis-at-home-and-abroad/",
"description": "Link url to presidential actions executive order. Part of paragraph 3"
},
"index.section2.header": {
"defaultMessage": "Areas of Focus",
"description": "section 2 header"
},
"index.section3.header": {
"defaultMessage": "A Transparent, Community-First Approach",
"description": "section 3 header"
},
"index.section3.inclusive": {
"defaultMessage": "{inlineHeader} Many areas which lack investments also lack environmental data and would be overlooked using available environmental data. CEQ is actively reaching out to groups that have historically been excluded from decision-making, such as groups in rural and tribal areas, to understand their needs and ask for their input.",
"description": "section 3 content inclusive"
},
"index.section3.inclusiveLabel": {
"defaultMessage": "Inclusive:",
"description": "Italic label for 2nd paragraph of section 3 on index page"
},
"index.section3.intro": {
"defaultMessage": "Successful initiatives are guided by direct input from the communities they are serving. CEQ commits to transparency, inclusivity, and iteration in building this screening tool.",
"description": "section 3 content paragraph 1 intro"
},
"index.section3.iterative": {
"defaultMessage": "{inlineHeader} The initial community prioritization list provided by the screening tool is the beginning of a collaborative process in score refinement, rather than a final answer. CEQ has received recommendations on data sets from community interviews, the White House Environmental Justice Advisory Council, and through public comment, but establishing a score that is truly representative will be a long-term, ongoing process. As communities submit feedback and recommendations, CEQ will continue to improve the tools being built and the processes for stakeholder and public engagement.",
"description": "section 3 content iterative"
},
"index.section3.iterativeLabel": {
"defaultMessage": "Iterative:",
"description": "Italic label for 3rd paragraph of section 3 on index page"
},
"index.section3.transparent": {
"defaultMessage": "{inlineHeader} The code and data behind the screening tool are open source, meaning it is available for the public to review and contribute to. This tool is being developed publicly so that communities, academic experts, and anyone whos interested can be involved in the tool-building process.",
"description": "section 3 content transparent"
},
"index.section3.transparentLabel": {
"defaultMessage": "Transparent:",
"description": "Italic label for 1st paragraph of section 3 on index page"
}
}

View file

@ -1,3 +1,30 @@
{
"71L0pp": "Justicia40"
"areasOfInterest.climate": "Cambio climático",
"areasOfInterest.energy": "Energía limpia y eficiencia energética",
"areasOfInterest.housing": "Vivienda asequible y sostenible",
"areasOfInterest.pollution": "Remediación de la contaminación heredada",
"areasOfInterest.training": "Training and workforce development",
"areasOfInterest.transit": "Transporte limpio",
"areasOfInterest.water": "Infraestructura de agua limpia",
"header.about": "Sobre nosotras",
"header.contact": "Contact",
"header.explore": "Explore the tool",
"header.methodology": "Metodología",
"header.timeline": "Timeline",
"header.title": "Justice40",
"index.aboutContent.header": "About Justice40",
"index-aboutContent-p1": "In an effort to address historical environmental injustices, President Biden created the Justice40 Initiative on January 27, 2021. The Justice40 Initiative directs 40% of the benefits from federal investments in seven key areas to overburdened and underserved communities.",
"index.aboutContent.p2": "Federal agencies will prioritize benefits using a new climate and economic justice screening tool. This screening tool will be a map that visualizes data to compare the cumulative impacts of environmental, climate, and economic factors. It is being developed by the Council on Environmental Quality (CEQ) with guidance from environmental justice leaders and communities affected by environmental injustices. The first version of the screening tool will be released in July 2021. However, the screening tool and data being used will be continuously updated to better reflect the lived experiences of community members.",
"index.aboutContent.p3": "Read more about the Justice40 Initiative in President Bidens {presidentLink}",
"index.presidentalLinkLabel": "Executive Order on Tackling the Climate Crisis at Home and Abroad.",
"index.presidentalLinkUri": "https://www.whitehouse.gov/briefing-room/presidential-actions/2021/01/27/executive-order-on-tackling-the-climate-crisis-at-home-and-abroad/",
"index.section2.header": "Areas of Focus",
"index.section3.header": "A Transparent, Community-First Approach",
"index.section3.inclusive": "{inlineHeader} Muchas áreas que carecen de inversiones también carecen de datos ambientales y se pasarían por alto utilizando los datos ambientales disponibles. CEQ se está acercando activamente a grupos que históricamente han sido excluidos de la toma de decisiones, como grupos en áreas rurales y tribales, para comprender sus necesidades y solicitar su opinión.",
"index.section3.inclusiveLabel": "Inclusivo:",
"index.section3.intro": "Las iniciativas exitosas están guiadas por aportes directos de las comunidades a las que sirven. CEQ se compromete con la transparencia, la inclusión y la iteración en la construcción de esta herramienta de evaluación.",
"index.section3.iterative": "{inlineHeader} La lista de priorización de la comunidad inicial proporcionada por la herramienta de evaluación es el comienzo de un proceso de colaboración en el refinamiento de la puntuación, en lugar de una respuesta final. CEQ ha recibido recomendaciones sobre conjuntos de datos de entrevistas comunitarias, el Consejo Asesor de Justicia Ambiental de la Casa Blanca y mediante comentarios públicos, pero establecer una puntuación que sea verdaderamente representativa será un proceso continuo a largo plazo. A medida que las comunidades envíen comentarios y recomendaciones, CEQ continuará mejorando las herramientas que se están construyendo y los procesos para la participación pública y de las partes interesadas.",
"index.section3.iterativeLabel": "Iterativo:",
"index.section3.transparent": "{inlineHeader} El código y los datos detrás de la herramienta de detección son de código abierto, lo que significa que está disponible para que el público los revise y contribuya. Esta herramienta se está desarrollando públicamente para que las comunidades, los expertos académicos y cualquier persona interesada puedan participar en el proceso de creación de herramientas.",
"index.section3.transparentLabel": "Transparencia:"
}