Skip to content

Commit

Permalink
feat: translations for beacon ui additions
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rocheleau authored Dec 22, 2023
2 parents 7cec2c7 + 25456f3 commit 045f4e5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/js/components/Beacon/BeaconQueryUi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const VARIANTS_INSTRUCTIONS_LINE4a = 'Coordinates are one-based.';
const VARIANTS_INSTRUCTIONS_LINE4b = 'Leave this form blank to search by metadata only.';
const METADATA_INSTRUCTIONS = 'Search over clinical or phenotypic properties.';
const VARIANTS_FORM_ERROR_MESSAGE =
'variants form should include either an end position or both reference and alternate bases';
'Variants form should include either an end position or both reference and alternate bases';

const BeaconQueryUi = () => {
const td = useTranslationDefault();
Expand Down
13 changes: 11 additions & 2 deletions src/public/locales/en/default_translation_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"Metadata": "Metadata",
"Search Beacon": "Search Beacon",
"Clear Form": "Clear Form",
"Variants search requires the fields Chromosome, Variant start, Assembly ID, and at least one of Variant end or Alternate base(s).": "Variants search requires the fields Chromosome, Variant start, Assembly ID, and at least one of Variant end or Alternate base(s).",
"Search over clinical or phenotypic properties.": "Search over clinical or phenotypic properties.",
"Chromosome": "Chromosome",
"Variant start": "Variant start",
Expand All @@ -77,5 +76,15 @@
"or": "or",
"Ingestion History Is Empty": "Ingestion History Is Empty",
"Latest Data Ingestion": "Latest Data Ingestion",
"Beacon error": "Beacon error",
"Variants form should include either an end position or both reference and alternate bases": "Variants form should include either an end position or both reference and alternate bases",
"Variant search": "Variant search",
"To search for all variants inside a range: fill both \"Variant start\" and \"Variant end\",": "To search for all variants inside a range: fill both \"Variant start\" and \"Variant end\",",
"all variants inside the range will be returned. You can optionally filter by reference or alternate bases.": "all variants inside the range will be returned. You can optionally filter by reference or alternate bases.",
"To search for a variant at a particular position, either set \"Variant end\" to the same value in \"Variant start\",": "To search for a variant at a particular position, either set \"Variant end\" to the same value in \"Variant start\",",
"or fill in values for both reference and alternate bases.": "or fill in values for both reference and alternate bases.",
"\"Chromosome\", \"Variant start\" and \"Assembly ID\" are always required.": "\"Chromosome\", \"Variant start\" and \"Assembly ID\" are always required.",
"Coordinates are one-based.": "Coordinates are one-based.",
"Leave this form blank to search by metadata only.": "Leave this form blank to search by metadata only.",
"Clinical Data": "Clinical Data"
}
}
15 changes: 12 additions & 3 deletions src/public/locales/fr/default_translation_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"Metadata": "Métadonnées",
"Search Beacon": "Recherche sur le Beacon",
"Clear Form": "Effacer le formulaire",
"Variants search requires the fields Chromosome, Variant start, Assembly ID, and at least one of Variant end or Alternate base(s).": "La recherche de variantes nécessite les champs 'Chromosome', 'Début du variant', 'Assemblage génomique', et au moins un des champs 'Fin du variant' ou 'Base(s) alternative(s)'.",
"Search over clinical or phenotypic properties.": "Recherche sur les propriétés cliniques ou phénotypiques.",
"Chromosome": "Chromosome",
"Variant start": "Début du variant",
Expand All @@ -68,7 +67,7 @@
"search field required": "champ de recherche requis",
"value required": "valeur requise",
"maximum of": "maximum de",
"filters permitted": "filtres autorisés",
"filters permitted": "filtres autorisés",
"Enter a chromosome name, e.g.: \"17\" or \"X\"": "Entrer un nom de chromosome, par exemple : \"17\" ou \"X\"",
"Enter a position number, e.g. \"100\"": "Entrer un numéro de position, par exemple \"100\"",
"Enter a position number, e.g. \"200\"": "Entrer un numéro de position, par exemple \"200\"",
Expand All @@ -77,5 +76,15 @@
"or": "ou",
"Ingestion History Is Empty": "L'historique d'ingestion est vide",
"Latest Data Ingestion": "Dernière ingestion de données",
"Beacon error": "Erreur de Beacon",
"Variants form should include either an end position or both reference and alternate bases": "Le formulaire de recherche de variants doit inclure soit la position de fin, ou la base de référence et les bases alternatives.",
"Variant search": "Chercher un variant",
"To search for all variants inside a range: fill both \"Variant start\" and \"Variant end\",": "Pour chercher tous les variants se trouvant dans une plage donnée: remplissez \"Début du variant\" et \"Fin du variant\",",
"all variants inside the range will be returned. You can optionally filter by reference or alternate bases.": "tous les variants dans la plage seront retournés. Il est aussi possible de filtrer avec les bases de référence et les bases alternatives.",
"To search for a variant at a particular position, either set \"Variant end\" to the same value in \"Variant start\",": "Pour chercher un variant se trouvant à une position précise, spécifiez soit \"Fin du variant\" comme ayant la même valeur que \"Début du variant\",",
"or fill in values for both reference and alternate bases.": "ou fournissez les valeurs pour les bases de référence et les bases alternatives",
"\"Chromosome\", \"Variant start\" and \"Assembly ID\" are always required.": "\"Chromosome\", \"Début du variant\" et \"Assemblage génomique\" sont toujours requis.",
"Coordinates are one-based.": "Les coordonnées sont en base un.",
"Leave this form blank to search by metadata only.": "Laissez ce formulaire vide pour effectuer une recherche sur les métadonnées seulement.",
"Clinical Data": "Données cliniques"
}
}

0 comments on commit 045f4e5

Please sign in to comment.