Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-chart into O3-3515
  • Loading branch information
jwnasambu committed Oct 23, 2024
2 parents 9be5092 + 9b112b9 commit 7b7a786
Show file tree
Hide file tree
Showing 278 changed files with 11,772 additions and 178 deletions.
3 changes: 1 addition & 2 deletions __mocks__/react-i18next.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ useMock.i18n = { language: 'en_US' };

module.exports = {
// this mock makes sure any components using the translate HoC receive the t function as a prop
Trans: ({ children }) => renderNodes(children),
Trans: ({ children }) => (Array.isArray(children) ? renderNodes(children) : renderNodes([children])),
Translation: ({ children }) => children((k) => k, { i18n: {} }),
useTranslation: () => useMock,

// mock if needed
I18nextProvider: reactI18next.I18nextProvider,
initReactI18next: reactI18next.initReactI18next,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"sass": "^1.54.3",
"swc-loader": "^0.2.3",
"swr": "^2.2.4",
"turbo": "^2.0.12",
"turbo": "^2.2.3",
"typescript": "^4.0.3",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.15.1"
Expand Down
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/hi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/pt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/si.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/sw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/sw_KE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/tr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/tr_TR.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/uk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Cancel",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Loading",
"or": "or",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
15 changes: 15 additions & 0 deletions packages/esm-form-engine-app/translations/vi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cancel": "Hủy",
"closeThisPanel": "Close this panel",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"loading": "Đang tải",
"or": "hoặc",
"thisList": "this list",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
}
70 changes: 70 additions & 0 deletions packages/esm-form-entry-app/translations/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"aDayAgo": "a day ago",
"aFewSecondsAgo": "a few seconds ago",
"aMinuteAgo": "a minute ago",
"aMonthAgo": "a month ago",
"aYearAgo": "a year ago",
"add": "Add",
"addHour": "Add a hour",
"addMinute": "Add a minute",
"addSecond": "Add a second",
"anHourAgo": "an hour ago",
"cancel": "Cancel",
"changeToMonthView": "Change to month view",
"chooseMonthAndYear": "Choose month and year",
"clearEntry": "Are you sure you want to clear this entry?",
"closeThisPanel": "Close this panel",
"componentLoadingFailed": "Component Loading failed...",
"daysAgo": " days ago",
"deleteEntry": "Are you sure you want to delete this item?",
"discardButton": "Discard",
"disallowDecimals": "Decimals are not allowed",
"enterMoreCharacters": "Please enter 2 or more characters",
"errorFetchingFormData": "There was an error fetching form data. Details: {detail}",
"errorLoadingForm": "Error loading form",
"errorWithForm": "There was an error with this form",
"fix": "Fix",
"formSubmissionFailed": "An error occurred while processing your form submission. Kindly notify the system administrator and reference the following error : {error}",
"formSubmittedSuccessfully": "The form has been submitted successfully.",
"from": "From",
"futureDateRestriction": "Future date is not allowed!",
"hoursAgo": " hours ago",
"invalidDate": "Provided date is invalid!",
"loading": "Loading...",
"loadingComponent": "Loading Component...",
"max": "Max value should be {max}",
"maxDate": "Max Date should be {maxDate}",
"maxEntries": "Cannot have more than {max} entries",
"maxLength": "Max Length should be {maxLength}",
"min": "Min value should be {min}",
"minDate": "Min Date should be {minDate}",
"minLength": "Min Length should be {minLength}",
"minusHour": "Minus a hour",
"minusMinute": "Minus a minute",
"minusSecond": "Minus a second",
"minutesAgo": " minutes ago",
"monthsAgo": " months ago",
"next": "Next",
"next21Years": "Next 21 years",
"nextMonth": "Next month",
"nextYear": "Next year",
"patientIdentifierDuplication": "Patient identifier duplication",
"patientIdentifierDuplicationDescription": "The identifier provided is already associated with an existing patient. Please check the identifier and try again.",
"orderNumber": "Order number",
"previous": "Previous",
"previous21Years": "Previous 21 years",
"previousMonth": "Previous month",
"previousValue": "Previous Value",
"previousYear": "Previous year",
"remove": "Remove",
"requiredField": "This field is required!",
"saveAndCloseButton": "Save and close",
"selectWeeks": "Select Weeks",
"set": "Set",
"submitting": "Submitting",
"to": "To",
"tryOpeningAnotherForm": "Try opening another form",
"useValue": "Use Value",
"weeks": "Weeks",
"yearsAgo": " years ago"
}
70 changes: 70 additions & 0 deletions packages/esm-form-entry-app/translations/hi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"aDayAgo": "a day ago",
"aFewSecondsAgo": "a few seconds ago",
"aMinuteAgo": "a minute ago",
"aMonthAgo": "a month ago",
"aYearAgo": "a year ago",
"add": "Add",
"addHour": "Add a hour",
"addMinute": "Add a minute",
"addSecond": "Add a second",
"anHourAgo": "an hour ago",
"cancel": "Cancel",
"changeToMonthView": "Change to month view",
"chooseMonthAndYear": "Choose month and year",
"clearEntry": "Are you sure you want to clear this entry?",
"closeThisPanel": "Close this panel",
"componentLoadingFailed": "Component Loading failed...",
"daysAgo": " days ago",
"deleteEntry": "Are you sure you want to delete this item?",
"discardButton": "Discard",
"disallowDecimals": "Decimals are not allowed",
"enterMoreCharacters": "Please enter 2 or more characters",
"errorFetchingFormData": "There was an error fetching form data. Details: {detail}",
"errorLoadingForm": "Error loading form",
"errorWithForm": "There was an error with this form",
"fix": "Fix",
"formSubmissionFailed": "An error occurred while processing your form submission. Kindly notify the system administrator and reference the following error : {error}",
"formSubmittedSuccessfully": "The form has been submitted successfully.",
"from": "From",
"futureDateRestriction": "Future date is not allowed!",
"hoursAgo": " hours ago",
"invalidDate": "Provided date is invalid!",
"loading": "Loading...",
"loadingComponent": "Loading Component...",
"max": "Max value should be {max}",
"maxDate": "Max Date should be {maxDate}",
"maxEntries": "Cannot have more than {max} entries",
"maxLength": "Max Length should be {maxLength}",
"min": "Min value should be {min}",
"minDate": "Min Date should be {minDate}",
"minLength": "Min Length should be {minLength}",
"minusHour": "Minus a hour",
"minusMinute": "Minus a minute",
"minusSecond": "Minus a second",
"minutesAgo": " minutes ago",
"monthsAgo": " months ago",
"next": "Next",
"next21Years": "Next 21 years",
"nextMonth": "Next month",
"nextYear": "Next year",
"patientIdentifierDuplication": "Patient identifier duplication",
"patientIdentifierDuplicationDescription": "The identifier provided is already associated with an existing patient. Please check the identifier and try again.",
"orderNumber": "Order number",
"previous": "Previous",
"previous21Years": "Previous 21 years",
"previousMonth": "Previous month",
"previousValue": "Previous Value",
"previousYear": "Previous year",
"remove": "Remove",
"requiredField": "This field is required!",
"saveAndCloseButton": "Save and close",
"selectWeeks": "Select Weeks",
"set": "Set",
"submitting": "Submitting",
"to": "To",
"tryOpeningAnotherForm": "Try opening another form",
"useValue": "Use Value",
"weeks": "Weeks",
"yearsAgo": " years ago"
}
Loading

0 comments on commit 7b7a786

Please sign in to comment.