Skip to content

Commit

Permalink
add missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jona42-ui committed Dec 10, 2023
1 parent 1b32466 commit a2e9669
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 36 deletions.
7 changes: 4 additions & 3 deletions frontend/src/components/data/LabTableHeaders.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { FormattedMessage } from 'react-intl';
export const labHeaderData = [
{
key: "formName",
header: "FormName",
header: <FormattedMessage id="header.formname"/>,
},
{
key: "firstName",
header: "First Name",
header: <FormattedMessage id="patient.first.name"/>,
},
{
key: "lastName",
header: "Last Name",
header: <FormattedMessage id="patient.last.name"/>,
},
];
26 changes: 14 additions & 12 deletions frontend/src/components/data/ReflexRuleOptions.js
Original file line number Diff line number Diff line change
@@ -1,56 +1,58 @@
import { FormattedMessage } from 'react-intl';

export const relationOptions = [
{
value: "EQUALS",
label: "equals",
label: <FormattedMessage id="label.equals"/>,
},
{
value: "NOT_EQUALS",
label: "does not equal",
label: <FormattedMessage id="label.notequals"/>,
},
{
value: "INSIDE_NORMAL_RANGE",
label: "is inside the normal range",
label: <FormattedMessage id="label.inside.normalrange"/>,
},
{
value: "OUTSIDE_NORMAL_RANGE",
label: "is outside the normal range",
label: <FormattedMessage id="label.outside.normalrange"/>,
},
];

export const overallOptions = [
{
value: "ANY",
label: "Any",
label: <FormattedMessage id="label.any"/>,
},
{
value: "ALL",
label: "All",
label: <FormattedMessage id="all.label"/>,
},
];

export const actionOptions = [
{
value: "ADD_TEST",
label: "Add test to order",
label: <FormattedMessage id="label.test.add"/>,
},
{
value: "ADD_NOTIFICATION",
label: "Add pop up notification to user",
label: <FormattedMessage id="label.add.notification"/>,
},
{
value: "ADD_INTERNAL_NOTE",
label: "Add Internal Note",
label: <FormData id="rulebuilder.label.addInternalNote"/>,
},
{
value: "ADD_EXTERNAL_NOTE",
label: "Add External Note",
label: <FormattedMessage id="rulebuilder.label.addExternalNote"/>,
},
{
value: "ADD_INTERNAL_TRIGGER_MESSAGE",
label: "Add Internal `triggered by` message",
label: <FormattedMessage id="rulebuilder.label.add.internaltrigger"/>,
},
{
value: "ADD_EXTERNAL_TRIGGER_MESSAGE",
label: "Add External `triggered by` message",
label: <FormattedMessage id="rulebuilder.label.add.externaltrigger"/>,
},
];
15 changes: 8 additions & 7 deletions frontend/src/components/data/SampleTypesTableHeaders.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
import { FormattedMessage } from 'react-intl';
export const sampleTypesTableHeader = [
{
key: "select_checkBox",
header: "",
},
{
key: "_id",
header: "ID",
header: <FormattedMessage id="header.ID"/>,
},
{
key: "sampleType",
header: "Sample Type",
header: <FormattedMessage id="sample.type"/>,
},
{
key: "collectionDate",
header: "Collection Date(dd/mm/yyyy)",
header: <FormattedMessage id="sample.collection.date"/> +"(dd/mm/yyyy) ",
},
{
key: "collectionTime",
header: "Collection Time(hh:mm)",
header: <FormattedMessage id="sample.collection.time"/> +"(hh:mm) ",
},
{
key: "collector",
header: "Collector",
header: <FormattedMessage id= "collector.label"/>,
},
{
key: "reject",
header: "Reject",
header:<FormattedMessage id="header.reject"/>,
},
{
key: "rejectReason",
header: "Reject Reason",
header: <FormattedMessage id="header.rejection.reason"/>,
},
{
key: "removeSample",
Expand Down
25 changes: 13 additions & 12 deletions frontend/src/components/data/orderCurrentTestsHeaders.js
Original file line number Diff line number Diff line change
@@ -1,54 +1,55 @@
import { FormattedMessage } from 'react-intl';
export const OrderCurrentTestsHeaders = [
{
key: "accessionNumber",
header: "Lab No.",
header: <FormattedMessage id="sample.label.labnumber"/>,
},
{
key: "sampleType",
header: "Sample Type",
header: <FormattedMessage id="sample.type"/>,
},
{
key: "collectionDate",
header: "Collection Date",
header: <FormattedMessage id="sample.collection.date"/>,
},
{
key: "collectionTime",
header: "Collection Time",
header: <FormattedMessage id="sample.collection.time"/>,
},
{
key: "removeSample",
header: "Remove Sample",
header: <FormattedMessage id="sample.remove.action"/>,
},
{
key: "testName",
header: "Test Name",
header: <FormattedMessage id="sample.entry.project.testName"/>,
},
{
key: "hasResults",
header: "Results Recorded",
header: <FormattedMessage id="header.results.recorded"/>,
},
{
key: "canceled",
header: "Cancel Test",
header: <FormattedMessage id= "header.cancel.test"/>,
},
];

export const OrderPossibleTestsHeaders = [
{
key: "accessionNumber",
header: "Lab No.",
header:< FormattedMessage id="sample.label.labnumber"/>,
},
{
key: "sampleType",
header: "Sample Type",
header: <FormattedMessage id="sample.type"/>,
},
{
key: "testName",
header: "Test Name",
header: <FormattedMessage id="sample.entry.project.testName"/>,
},
{
key: "add",
header: "Assign",
header: <FormattedMessage id="header.assign"/>,
},
];

20 changes: 19 additions & 1 deletion frontend/src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@
"referral.testresult.pastnote":"Past Notes",
"new.patient.label": "New Patient",
"sample.select.type": "Select sample type",
"sample.type":"Sample Type",
"sample.reject.label": "Reject Sample",
"sample.collection.date": "Collection Date",
"sample.collection.time": "Collection Time",
Expand Down Expand Up @@ -565,6 +566,23 @@
"stillThere.title":"Still There?",
"stillThere.message":"user session is about to time out",
"reflexTests":"Reflex Tests",
"calculatedTests" :"Calculated Tests"
"calculatedTests" :"Calculated Tests",
"header.formname":"FormName",
"header.results.recorded":"Results Recorded",
"header.cancel.test":"Cancel Test",
"header.assign":"Assign",
"header.rejection.reason":"Reject Reason",
"header.reject":"Reject",
"header.ID":"ID",
"label.equals":"equals",
"label.notequals":"does not equal",
"label.inside.normalrange":"is inside the normal range",
"label.outside.normalrange":"is outside the normal range",
"label.any":"Any",
"label.test.add":"Add test to order",
"label.add.notification":"Add pop up notification to user",
"rulebuilder.label.add.internaltrigger":"Add Internal `triggered by` message",
"rulebuilder.label.add.externaltrigger":"Add External `triggered by` message"


}
19 changes: 18 additions & 1 deletion frontend/src/languages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,23 @@
"stillThere.title":"Toujours là?",
"stillThere.message":"la session utilisateur est sur le point d'expirer",
"reflexTests":"Tests de réflexes",
"calculatedTests":"Calculated Tests"
"calculatedTests":"Calculated Tests",
"patient.natioanalid":"Carte d'identité",
"header.formname":"Nom de forme",
"sample.type":"Échantillon type",
"header.results.recorded":"Résultats enregistrés",
"header.cancel.test":"Annuler le test",
"header.assign":"Attribuer",
"header.rejection.reason":"Raison du rejet",
"header.reject":"Rejeter",
"header.ID":"IDENTIFIANT",
"label.equals":"équivaut à",
"label.notequals":"n'est pas égal",
"label.inside.normalrange":"est dans la plage normale",
"label.outside.normalrange":"est en dehors de la plage normale",
"label.any":"N'importe lequel",
"label.add.notification":"Ajouter une notification contextuelle à l'utilisateur",
"rulebuilder.label.add.internaltrigger":"Ajouter un message interne \"déclenché par\"",
"rulebuilder.label.add.externaltrigger":"Add External `triggered by` message"

}

0 comments on commit a2e9669

Please sign in to comment.