From 4c5c22f4a464abb4e29d71d441249d33af0cdae8 Mon Sep 17 00:00:00 2001 From: akdave2003 <124077309+akdave2003@users.noreply.github.com> Date: Sat, 28 Dec 2024 09:00:55 -0500 Subject: [PATCH] All refactored except issue with hosted_by (#1045) * All refactored except issue with hosted_by * Changed Refactored String Causing Error * Remove unneeded i18n keys * Localize clear directions and simplify the CyclOSM attribution * Remove blank space from attribution --------- Co-authored-by: Andrew Tavis McAllister --- frontend/components/media/MediaMap.vue | 10 +++++----- frontend/i18n/en-US.json | 6 ++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/frontend/components/media/MediaMap.vue b/frontend/components/media/MediaMap.vue index 59c57f0d4..ac406ebe4 100644 --- a/frontend/components/media/MediaMap.vue +++ b/frontend/components/media/MediaMap.vue @@ -92,7 +92,7 @@ const routeProfileMap: RouteProfile[] = [ const walkingRouteProfileControl = `
CyclOSM hosted by OSM France', + 'CyclOSM', }, }, layers: [ @@ -396,7 +396,7 @@ onMounted(() => { color: grey; cursor: pointer" > - Clear directions + ${i18n.t("components.media_map.clear_directions")}
`; @@ -409,7 +409,7 @@ onMounted(() => { color: grey; cursor: pointer;" > - Clear directions [x] + ${i18n.t("components.media_map.clear_directions")} [x] `; diff --git a/frontend/i18n/en-US.json b/frontend/i18n/en-US.json index 4a078557e..611a2c4ba 100644 --- a/frontend/i18n/en-US.json +++ b/frontend/i18n/en-US.json @@ -75,8 +75,8 @@ "components._global.upvote_application_aria_label": "Vote to support the organization joining activist", "components._global.working_groups_subtext": "The following are working groups within {entity_name}", "components.btn_road_map.aria_label": "Learn about the activist roadmap", - "components.btn_share_icon.url_copied": "URL copied", "components.btn_share_icon.opening_signal": "Opening Signal", + "components.btn_share_icon.url_copied": "URL copied", "components.card.about._global.full_text": "Click for full text", "components.card.about._global.full_text_aria_label": "Click to view a popup with the full text", "components.card.about._global.members_lower": "members", @@ -142,13 +142,13 @@ "components.card_metrics_overview.new_organizations": "New orgs", "components.card_org_application_vote.downvote_application_aria_label": "Vote to not support the organization joining activist", "components.card_search_result.event_img_alt_text": "The event logo of", + "components.card_search_result.group_img_alt_text": "The group logo of", "components.card_search_result.label": "stars", "components.card_search_result.members": "Members", "components.card_search_result.navigate_to_event_aria_label": "Navigate to the page for this event", "components.card_search_result.navigate_to_organization_aria_label": "Navigate to the page for this organization", "components.card_search_result.navigate_to_resource_aria_label": "Navigate to the page for this resource", "components.card_search_result.navigate_to_user_aria_label": "Navigate to the page for this user", - "components.card_search_result.group_img_alt_text": "The group logo of", "components.card_search_result.organization_img_alt_text": "The organization logo of", "components.card_search_result.supporters_lower": "supporters", "components.card_search_result.view_video": "View video", @@ -259,6 +259,8 @@ "components.landing_tech_banner.open_source_text": "We're dedicated to working in the open to build trust with our partner organizations and fellow activists. All who want to help us build are welcome!", "components.logo_activist.aria_label": "The activist logo that links to the home page", "components.media_image_carousel.img_alt_text": "Image of the organization or their work.", + "components.media_map.change_profile": "Change profile [p]", + "components.media_map.clear_directions": "Clear directions", "components.media_map.maplibre_gl_alert": "Your browser does not support our mapping service MapLibre GL, so we won't be able to display maps.", "components.modal.edit._global.join_organization_link": "Join organization link", "components.modal.edit._global.remember_https": "This is the URL that the join button will link to. Please include the full URL with https so the link works properly.",