From 4ba26ac578f70e585af2a845c5bad28504da47cd Mon Sep 17 00:00:00 2001 From: Cee <cnell@usgs.gov> Date: Sun, 22 Sep 2024 10:11:44 -0700 Subject: [PATCH] serve up translated alt text for maps --- src/components/MapsSection.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/MapsSection.vue b/src/components/MapsSection.vue index d087a1a..3cd79bb 100644 --- a/src/components/MapsSection.vue +++ b/src/components/MapsSection.vue @@ -32,7 +32,7 @@ @/assets/images/responsive_images/avg_household_size_2022_en-1800.jpg 1920w" sizes="(max-width: 600px) 320px, (max-width: 1200px) 640px, (min-width: 1201px) 1280px, 1920px" src="@/assets/images/responsive_images/avg_household_size_2022_en-1280.jpg" - alt="Choropleth map of average household size, of occupied housing units, at the county-level across the contiguous U.S.. The greatest average housing size were in Oglala Lakota County, South Dakota (5), Madison County, Idaho (3.9) and Todd County, South Dakota (3.8) (U.S. Census Bureau, 2022)." + :alt="t('text.components.mapText.p1Alt')" /> </picture> </div> @@ -61,7 +61,7 @@ @/assets/images/responsive_images/perc_hispanic_census_2022_en-1800.jpg 1920w" sizes="(max-width: 600px) 320px, (max-width: 1200px) 640px, (min-width: 1201px) 1280px, 1920px" src="@/assets/images/responsive_images/perc_hispanic_census_2022_en-1280.jpg" - alt="Choropleth map of percent of Hispanic populations at the county-level across the contiguous U.S.. The greatest percent Hispanic were in Kenedy County, Texas (96.6%), Starr County, Texas (96.2%) and Webb County, Texas (95.4%) (U.S. Census Bureau, 2022)." + :alt="t('text.components.mapText.p4Alt')" /> </picture> </div> @@ -90,7 +90,7 @@ @/assets/images/responsive_images/perc_disabled_census_2022_en-1800.jpg 1920w" sizes="(max-width: 600px) 320px, (max-width: 1200px) 640px, (min-width: 1201px) 1280px, 1920px" src="@/assets/images/responsive_images/perc_disabled_census_2022_en-1280.jpg" - alt="Choropleth map of percent with a disability of total civilian noninstitutionalized population at the county-level across the contiguous U.S.. The greatest percent disabled were in Catron County, New Mexico (41%), Mora County, New Mexico (34%) and Kinney County, Texas (34%) (U.S. Census Bureau, 2022)." + :alt="t('text.components.mapText.p5Alt')" /> </picture> </div> @@ -119,7 +119,7 @@ @/assets/images/responsive_images/med_income_census_2022_en-1800.jpg 1920w" sizes="(max-width: 600px) 320px, (max-width: 1200px) 640px, (min-width: 1201px) 1280px, 1920px" src="@/assets/images/responsive_images/med_income_census_2022_en-1280.jpg" - alt="Choropleth map of median household income in the past 12 months (in 2022 inflation-adjusted dollars) at the county-level across the contiguous U.S.. The greatest median incomes include Santa Clara County, California ($153,792), San Mateo County, California ($149,907) and Marin County, California ($142,019) (U.S. Census Bureau, 2022)." + :alt="t('text.components.mapText.p2Alt')" /> </picture> </div> @@ -148,7 +148,7 @@ @/assets/images/responsive_images/median_rent_2022_en-1800.jpg 1920w" sizes="(max-width: 600px) 320px, (max-width: 1200px) 640px, (min-width: 1201px) 1280px, 1920px" src="@/assets/images/responsive_images/median_rent_2022_en-1280.jpg" - alt="Choropleth map of median gross rent at the county-level across the contiguous U.S.. The greatest median gross rents include San Mateo County, California ($2,805), Santa Clara County, California ($2,719) and Marin County, California ($2,487) (U.S. Census Bureau, 2022)." + :alt="t('text.components.mapText.p3Alt')" /> </picture> </div> -- GitLab