Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translated placeholder texts #99

Merged
merged 1 commit into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}