From 5b82fe001014d8a9eb4ec4cf2fc82b87725374d4 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Fri, 6 Dec 2024 14:03:07 -0500 Subject: [PATCH] i18n: add missing beacon network translations --- src/js/components/Beacon/BeaconCommon/Filters.tsx | 2 +- src/js/components/Beacon/BeaconNetwork/NetworkSearchResults.tsx | 2 +- src/public/locales/en/default_translation_en.json | 2 ++ src/public/locales/fr/default_translation_fr.json | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/js/components/Beacon/BeaconCommon/Filters.tsx b/src/js/components/Beacon/BeaconCommon/Filters.tsx index 0b83fd29..60435834 100644 --- a/src/js/components/Beacon/BeaconCommon/Filters.tsx +++ b/src/js/components/Beacon/BeaconCommon/Filters.tsx @@ -16,7 +16,7 @@ const NetworkFilterToggle = () => { const { isQuerySectionsUnion } = useBeaconNetwork(); return ( - +
dispatch(toggleQuerySectionsUnionOrIntersection())} diff --git a/src/js/components/Beacon/BeaconNetwork/NetworkSearchResults.tsx b/src/js/components/Beacon/BeaconNetwork/NetworkSearchResults.tsx index 5fe994ca..a8a01cdd 100644 --- a/src/js/components/Beacon/BeaconNetwork/NetworkSearchResults.tsx +++ b/src/js/components/Beacon/BeaconNetwork/NetworkSearchResults.tsx @@ -43,7 +43,7 @@ const NetworkSearchResults = () => { // currently not possible to have both a network error and results, but this may change in the future const resultsExtra = ( - {hasBeaconNetworkError && Network Error} + {hasBeaconNetworkError && {t('beacon.network_error')}} {!noResponsesYet && isFetchingAtLeastOneResponse && ( } /> )} diff --git a/src/public/locales/en/default_translation_en.json b/src/public/locales/en/default_translation_en.json index 21d14d27..dbc7865d 100644 --- a/src/public/locales/en/default_translation_en.json +++ b/src/public/locales/en/default_translation_en.json @@ -113,8 +113,10 @@ "beacon_error": "Beacon Error", "results_from": "Results from", "network_search_results": "Network Search Results", + "network_error": "Network Error", "show_all_filters": "show all filters", "common_filters_only": "common filters only", + "network_filter_toggle_help": "Choose all search filters across the network, or only those common to all beacons.", "home_page": "Home Page", "select_asm": "Select an assembly", "variants_form_error": "Variants form should include a chromosome and either an end position or both reference and alternate bases", diff --git a/src/public/locales/fr/default_translation_fr.json b/src/public/locales/fr/default_translation_fr.json index a500263b..fc6cc70a 100644 --- a/src/public/locales/fr/default_translation_fr.json +++ b/src/public/locales/fr/default_translation_fr.json @@ -113,8 +113,10 @@ "beacon_error": "Erreur de Beacon", "results_from": "Résultats de", "network_search_results": "Résultats de la recherche sur le réseau", + "network_error": "Erreur de réseau", "show_all_filters": "afficher tous les filtres", "common_filters_only": "filtres communs uniquement", + "network_filter_toggle_help": "Choisissez tous les filtres de recherche du réseau ou seulement ceux qui sont communs à tous les Beacons.", "home_page": "Page d'accueil", "select_asm": "Sélectionner un assemblage génomique", "variants_form_error": "Le formulaire de recherche de variants doit inclure un chromosome et soit la position de fin, ou les bases de référence et les bases alternatives.",