Skip to content

Commit

Permalink
Merge pull request #99 from bento-platform/translating-beacon-text
Browse files Browse the repository at this point in the history
translated placeholder texts
  • Loading branch information
SanjeevLakhwani authored Jul 10, 2023
2 parents 64743d5 + af8a0b7 commit ee53776
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/js/components/Beacon/VariantsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,25 @@ const VariantsForm = ({ beaconAssemblyIds }: VariantsFormProps) => {
start: {
name: 'Variant start',
rules: [{ pattern: DIGITS_REGEX, message: td('enter a postion number, eg "100"') }],
placeholder: 'eg 100',
placeholder: `${td('eg')} 100`,
initialValue: '',
},
end: {
name: 'Variant end',
rules: [{ pattern: DIGITS_REGEX, message: td('enter a postion number, eg "200"') }],
placeholder: 'eg 200',
placeholder: `${td('eg')} 200`,
initialValue: '',
},
referenceBases: {
name: 'Reference base(s)',
rules: [{ pattern: NUCLEOTIDES_REGEX, message: td('enter any combination of A, C, G, T, or N') }],
placeholder: 'A, C, G, G, T or N',
placeholder: `A, C, G, T ${td('or')} N`,
initialValue: '',
},
alternateBases: {
name: 'Alternate base(s)',
rules: [{ pattern: NUCLEOTIDES_REGEX, message: td('enter any combination of A, C, G, T, or N') }],
placeholder: 'A, C, G, T or N',
placeholder: `A, C, G, T ${td('or')} N`,
initialValue: '',
},
assemblyId: { name: 'Assembly ID', rules: [{}], placeholder: '', initialValue: '' },
Expand Down
4 changes: 3 additions & 1 deletion src/public/locales/en/default_translation_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,7 @@
"Enter a chromosome name, eg: \"17\" or \"X\"": "Enter a chromosome name, eg: \"17\" or \"X\"",
"enter a postion number, eg \"100\"": "enter a postion number, eg \"100\"",
"enter a postion number, eg \"200\"": "enter a postion number, eg \"200\"",
"enter any combination of A, C, G, T, or N": "enter any combination of A, C, G, T, or N"
"enter any combination of A, C, G, T, or N": "enter any combination of A, C, G, T, or N",
"eg": "eg",
"or": "or"
}
4 changes: 3 additions & 1 deletion src/public/locales/fr/default_translation_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,7 @@
"Enter a chromosome name, eg: \"17\" or \"X\"": "Entrer un nom de chromosome, par exemple : \"17\" ou \"X\"",
"enter a postion number, eg \"100\"": "entrer un numéro de position, par exemple \"100\"",
"enter a postion number, eg \"200\"": "entrer un numéro de position, par exemple \"200\"",
"enter any combination of A, C, G, T, or N": "entrer une combinaison quelconque de A, C, G, T, ou N"
"enter any combination of A, C, G, T, or N": "entrer une combinaison quelconque de A, C, G, T, ou N",
"eg": "par exemple",
"or": "ou"
}

0 comments on commit ee53776

Please sign in to comment.