Skip to content

Commit

Permalink
i18n: add missing beacon network translations
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Dec 6, 2024
1 parent 2b1c42a commit 5b82fe0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/components/Beacon/BeaconCommon/Filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const NetworkFilterToggle = () => {
const { isQuerySectionsUnion } = useBeaconNetwork();

return (
<Tooltip title="Choose all search filters across the network, or only those common to all beacons.">
<Tooltip title={t('beacon.network_filter_toggle_help')}>
<div style={{ display: 'flex', alignItems: 'center' }}>
<Switch
onChange={() => dispatch(toggleQuerySectionsUnionOrIntersection())}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
<Space>
{hasBeaconNetworkError && <Tag color="red">Network Error</Tag>}
{hasBeaconNetworkError && <Tag color="red">{t('beacon.network_error')}</Tag>}
{!noResponsesYet && isFetchingAtLeastOneResponse && (
<Spin size="small" indicator={<Loading3QuartersOutlined spin={true} />} />
)}
Expand Down
2 changes: 2 additions & 0 deletions src/public/locales/en/default_translation_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/public/locales/fr/default_translation_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit 5b82fe0

Please sign in to comment.