From 8e50fa23cb8f4c6ce28bd198e87039e9aaa9cca2 Mon Sep 17 00:00:00 2001 From: Vim <86254807+vim-usds@users.noreply.github.com> Date: Thu, 7 Jul 2022 09:53:27 -0400 Subject: [PATCH] Update wastewater category to be in Spanish (#1713) --- client/src/components/Indicator/Indicator.tsx | 2 +- client/src/data/copy/explore.tsx | 2 +- client/src/intl/en.json | 16 ++++++++-------- client/src/intl/es.json | 3 +-- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/client/src/components/Indicator/Indicator.tsx b/client/src/components/Indicator/Indicator.tsx index cdf02d1e..f69657e3 100644 --- a/client/src/components/Indicator/Indicator.tsx +++ b/client/src/components/Indicator/Indicator.tsx @@ -150,7 +150,7 @@ export const IndicatorValue = ({isPercent, displayStat}:IIndicatorValue) => { const i18nOrdinalSuffix: string = intl.formatMessage( { - id: 'explore.tool.page.side.panel.indicator.percentile.value.ordinal.suffix', + id: 'explore.map.page.side.panel.indicator.percentile.value.ordinal.suffix', // eslint-disable-next-line max-len description: `Navigate to the explore the tool page. Click on the map. The side panel will show categories. Open a category. This will define the indicator value's ordinal suffix. For example the st in 91st, the rd in 23rd, and the th in 26th, etc.`, defaultMessage: ` diff --git a/client/src/data/copy/explore.tsx b/client/src/data/copy/explore.tsx index f6e58b54..00c6f52c 100644 --- a/client/src/data/copy/explore.tsx +++ b/client/src/data/copy/explore.tsx @@ -385,7 +385,7 @@ export const SIDE_PANEL_CATEGORY = defineMessages({ `, }, CLEAN_WATER: { - id: 'explore.tool.page.side.panel.indicator.title.clean.water', + id: 'explore.map.page.side.panel.indicator.title.clean.water', defaultMessage: 'Clean water and wastewater infrastructure', description: `Navigate to the explore the tool page. When the map is in view, click on the map. The side panel will show Clean water and waste title `, diff --git a/client/src/intl/en.json b/client/src/intl/en.json index 45e1f5e7..ebe6156f 100644 --- a/client/src/intl/en.json +++ b/client/src/intl/en.json @@ -639,6 +639,10 @@ "defaultMessage": "Median home value", "description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show Housing cost burden" }, + "explore.map.page.side.panel.indicator.percentile.value.ordinal.suffix": { + "defaultMessage": "{indicatorValue, selectordinal, one {#st} two {#nd} =3 {#rd} other {#th} }", + "description": "Navigate to the explore the tool page. Click on the map. The side panel will show categories. Open a category. This will define the indicator value's ordinal suffix. For example the st in 91st, the rd in 23rd, and the th in 26th, etc." + }, "explore.map.page.side.panel.indicator.pm25": { "defaultMessage": "PM2.5 in the air", "description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show PM2.5 in the air" @@ -667,6 +671,10 @@ "defaultMessage": "Clean transit", "description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show Clean transportation title\n" }, + "explore.map.page.side.panel.indicator.title.clean.water": { + "defaultMessage": "Clean water and wastewater infrastructure", + "description": "Navigate to the explore the tool page. When the map is in view, click on the map. The side panel will show Clean water and waste title\n" + }, "explore.map.page.side.panel.indicator.title.climate": { "defaultMessage": "Climate change", "description": "Navigate to the explore the map page. When the map is in view, click on the map. The side panel will show Climate change title\n" @@ -859,14 +867,6 @@ "defaultMessage": "The map covers all U.S. census tracts, including those located within Tribal Nations, to the extent that data is available (see our Methodology & data page for more information). CEQ is engaging in consultation and coordination with Tribal Nations on the beta version of the map to provide Tribal Nations with meaningful opportunities for input, consistent with CEQ’s Action Plan for Consultation and Coordination with Tribal Nations, President Biden’s Memorandum on Tribal Consultation and Strengthening Nation-to-Nation Consultation, and Executive Order 13175 on Consultation and Coordination With Indian Tribal Governments.", "description": "Navigate to the explore the map page. Under the map, you will see tribal nations paragraph 1" }, - "explore.tool.page.side.panel.indicator.percentile.value.ordinal.suffix": { - "defaultMessage": "{indicatorValue, selectordinal, one {#st} two {#nd} =3 {#rd} other {#th} }", - "description": "Navigate to the explore the tool page. Click on the map. The side panel will show categories. Open a category. This will define the indicator value's ordinal suffix. For example the st in 91st, the rd in 23rd, and the th in 26th, etc." - }, - "explore.tool.page.side.panel.indicator.title.clean.water": { - "defaultMessage": "Clean water and wastewater infrastructure", - "description": "Navigate to the explore the tool page. When the map is in view, click on the map. The side panel will show Clean water and waste title\n" - }, "fab.survey.text": { "defaultMessage": "Help improve the site & data", "description": "Navigate to the public engagement page, this will be the text for floating action button" diff --git a/client/src/intl/es.json b/client/src/intl/es.json index 6d825486..2d18c567 100644 --- a/client/src/intl/es.json +++ b/client/src/intl/es.json @@ -161,7 +161,7 @@ "explore.map.page.side.panel.indicator.low.income": "Bajos ingresos", "explore.map.page.side.panel.indicator.low.med.income": "Mediana de bajos ingresos", "explore.map.page.side.panel.indicator.med.home.val": "Mediana del valor de la vivienda", - "explore.map.page.side.panel.indicator.percentile.value.ordinal.suffix": "{indicatorValue, selectordinal, one {#st} two {#nd} =3 {#rd} other {#th} }", + "explore.map.page.side.panel.indicator.percentile.value.ordinal.suffix": "{indicatorValue, selectordinal, one {#.a} two {#.a} =3 {#.a} other {#.a} }", "explore.map.page.side.panel.indicator.pm25": "PM2.5 en el aire", "explore.map.page.side.panel.indicator.poverty": "Pobreza", "explore.map.page.side.panel.indicator.prox.haz": "Proximidad a instalaciones para manejo de residuos peligrosos", @@ -219,7 +219,6 @@ "explore.map.page.under.map.note.on.territories.para.4": "Actualmente, se lleva a cabo la identificación de las comunidades desfavorecidas y la actualización correspondiente de la herramienta para Guam y las Islas Vírgenes de los Estados Unidos.", "explore.map.page.under.map.note.on.tribal.nations.intro": "Observaciones sobre las naciones tribales", "explore.map.page.under.map.note.on.tribal.nations.para.1": "La herramienta incluye todos los grupos de bloques del censo de los EE. UU., incluidos los que están ubicados en naciones tribales, en la medida en que se dispone de datos (consulte más información en la página Metodología y datos). El Consejo sobre la Calidad del Medio Ambiente (CEQ, por sus siglas en inglés) participa en la consulta y la coordinación con las naciones tribales sobre la versión beta de la herramienta para dar a esas naciones oportunidades valiosas para hacer aportes, conforme al Plan de acción para la consulta y la coordinación con las naciones tribales del CEQ, el Memorando del presidente Biden sobre Consulta de las naciones tribales y fortalecimiento de las consultas entre naciones y la Orden ejecutiva 13175 sobre Consulta y coordinación con los gobiernos de las tribus indias.", - "explore.tool.page.side.panel.indicator.percentile.value.ordinal.suffix": "{indicatorValue, selectordinal, one {#.a} two {#.a} =3 {#.a} other {#.a} }", "fab.survey.text": "Ayude a mejorar el sitio web y los datos", "faqs.page.coming.soon.text": "¡Próximamente!", "faqs.page.title.text": "Preguntas frecuentes",