Skip to content

Commit

Permalink
(chore) Add form engin lib translations
Browse files Browse the repository at this point in the history
  • Loading branch information
pirupius committed Jan 17, 2025
1 parent e60cbf9 commit 816a907
Show file tree
Hide file tree
Showing 9 changed files with 260 additions and 470 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
],
"scripts": {
"start": "openmrs develop --sources packages/esm-patient-chart-app/",
"start2": "openmrs develop --sources packages/esm-form-engine-app/ --backend http://lime-mosul-dev.madiro.org",
"ci:publish": "yarn workspaces foreach --all --topological --exclude @openmrs/esm-patient-chart npm publish --access public --tag latest",
"ci:prepublish": "yarn workspaces foreach --all --topological --exclude @openmrs/esm-patient-chart npm publish --access public --tag next",
"ci:bump-form-engine-lib": "yarn up @openmrs/esm-form-engine-lib@next",
Expand Down Expand Up @@ -82,7 +83,8 @@
"*.{css,scss,ts,tsx}": "prettier --write --list-different"
},
"resolutions": {
"sass": "^1.54.3"
"sass": "^1.54.3",
"@openmrs/esm-form-engine-lib": "portal:/Users/piru/Projects/openmrs-esm-form-engine-lib"
},
"packageManager": "[email protected]"
}
5 changes: 4 additions & 1 deletion packages/esm-form-engine-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"url": "https://github.com/openmrs/openmrs-esm-patient-chart/issues"
},
"dependencies": {
"@carbon/react": "^1.47.0",
"@carbon/react": "1.49.0",
"@openmrs/esm-form-engine-lib": "next",
"lodash-es": "^4.17.21",
"react-error-boundary": "^4.0.13"
Expand All @@ -54,5 +54,8 @@
"devDependencies": {
"@openmrs/esm-patient-common-lib": "workspace:*",
"webpack": "^5.94.0"
},
"resolutions": {
"@openmrs/esm-form-engine-lib": "portal:/Users/piru/Projects/openmrs-esm-form-engine-lib"
}
}
54 changes: 54 additions & 0 deletions packages/esm-form-engine-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,57 @@ export const deleteQuestionModal = getAsyncLifecycle(
() => import('./form-renderer/repeat/delete-question.modal'),
options,
);

/**
* DO NOT REMOVE THIS COMMENT
* THE TRANSLATION KEYS AND VALUES USED IN THE FORM ENGINE LIB ARE WRITTEN HERE
* t('add', 'Add');
* t('addCameraImage', 'Add camera image');
* t('addFile', 'Add files');
* t('blank', 'Blank');
* t('cameraCapture', 'Camera capture');
* t('cancel', 'Cancel');
* t('chooseAnOption', 'Choose an option');
* t('clearFile', 'Clear file');
* t('close', 'Close');
* t('closeCamera', 'Close camera');
* t('closeThisPanel', 'Close this panel');
* t('closesNotification', 'Closes notification');
* t('collapseAll', 'Collapse all');
* t('deleteQuestion', 'Delete question');
* t('deleteQuestionConfirmation', 'Are you sure you want to delete this question?');
* t('deleteQuestionExplainerText', 'This action cannot be undone.');
* t('errorLoadingFormSchema', 'Error loading form schema');
* t('errorLoadingInitialValues', 'Error loading initial values');
* t('errorRenderingField', 'Error rendering field');
* t('errorTitle', 'There was an error with this form');
* t('expandAll', 'Expand all');
* t('fieldErrorDescriptionTitle', 'Validation Errors');
* t('fileUploadDescription', '');
* t('fileUploadDescriptionAny', 'Upload any file type');
* t('invalidWorkspaceName', 'Invalid workspace name.');
* t('invalidWorkspaceNameSubtitle', 'Please provide a valid workspace name.');
* t('launchWorkspace', 'Launch Workspace');
* t('loading', 'Loading');
* t('notification', 'Notification');
* t('nullMandatoryField', 'Please fill the required fields');
* t('or', 'or');
* t('preview', 'Preview');
* t('previousValue', 'Previous value:');
* t('remove', 'Remove');
* t('required', 'Required');
* t('reuseValue', 'Reuse value');
* t('save', 'Save');
* t('search', 'Search');
* t('searching', 'Searching');
* t('submitting', 'Submitting');
* t('thisList', 'this list');
* t('time', 'Time');
* t('toggleCollapseOrExpand', 'Toggle collapse or expand');
* t('tryAgainMessage', 'Try opening another form from');
* t('unspecified', 'Unspecified');
* t('upload', 'Upload');
* t('uploadImage', 'Upload image');
* t('uploadedPhoto', 'Uploaded photo');
* t('valuesOutOfBound', 'Some of the values are out of bounds');
*/
42 changes: 39 additions & 3 deletions packages/esm-form-engine-app/translations/ar.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,51 @@
{
"cancel": "Cancel",
"add": "إضافة",
"addCameraImage": "إضافة صورة من الكاميرا",
"addFile": "إضافة ملفات",
"blank": "فارغ",
"cameraCapture": "التقاط بالكاميرا",
"cancel": "إلغاء",
"chooseAnOption": "اختر خيارًا",
"clearFile": "مسح الملف",
"close": "إغلاق",
"closeCamera": "إغلاق الكاميرا",
"closeThisPanel": "أغلق هذه اللوحة",
"closesNotification": "إغلاق الإشعار",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorLoadingFormSchema": "خطأ في تحميل مخطط النموذج",
"errorLoadingInitialValues": "خطأ في تحميل القيم الأولية",
"errorRenderingField": "خطأ في عرض الحقل",
"errorTitle": "كان هناك خطأ في هذا النموذج",
"expandAll": "Expand all",
"loading": "جار التحميل",
"fieldErrorDescriptionTitle": "أخطاء التحقق",
"fileUploadDescription": "",
"fileUploadDescriptionAny": "تحميل أي نوع من الملفات",
"invalidWorkspaceName": "اسم مساحة العمل غير صالح.",
"invalidWorkspaceNameSubtitle": "يرجى إدخال اسم صالح لمساحة العمل.",
"launchWorkspace": "فتح مساحة العمل",
"loading": "جارٍ التحميل",
"notification": "إشعار",
"nullMandatoryField": "يرجى ملء الحقول المطلوبة",
"or": "أو",
"preview": "معاينة",
"previousValue": "القيمة السابقة:",
"remove": "إزالة",
"required": "مطلوب",
"reuseValue": "إعادة استخدام القيمة",
"save": "حفظ",
"search": "بحث",
"searching": "جارٍ البحث",
"submitting": "جارٍ الإرسال",
"thisList": "هذه القائمة",
"time": "الوقت",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "حاول فتح نموذج آخر من"
"tryAgainMessage": "حاول فتح نموذج آخر من",
"unspecified": "غير محدد",
"upload": "تحميل",
"uploadedPhoto": "الصورة التي تم تحميلها",
"uploadImage": "تحميل صورة",
"valuesOutOfBound": "بعض القيم خارج النطاق المسموح"
}
38 changes: 37 additions & 1 deletion packages/esm-form-engine-app/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,51 @@
{
"add": "Add",
"addCameraImage": "Add camera image",
"addFile": "Add files",
"blank": "Blank",
"cameraCapture": "Camera capture",
"cancel": "Cancel",
"chooseAnOption": "Choose an option",
"clearFile": "Clear file",
"close": "Close",
"closeCamera": "Close camera",
"closeThisPanel": "Close this panel",
"closesNotification": "Closes notification",
"collapseAll": "Collapse all",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorLoadingFormSchema": "Error loading form schema",
"errorLoadingInitialValues": "Error loading initial values",
"errorRenderingField": "Error rendering field",
"errorTitle": "There was an error with this form",
"expandAll": "Expand all",
"fieldErrorDescriptionTitle": "Validation Errors",
"fileUploadDescription": "",
"fileUploadDescriptionAny": "Upload any file type",
"invalidWorkspaceName": "Invalid workspace name.",
"invalidWorkspaceNameSubtitle": "Please provide a valid workspace name.",
"launchWorkspace": "Launch Workspace",
"loading": "Loading",
"notification": "Notification",
"nullMandatoryField": "Please fill the required fields",
"or": "or",
"preview": "Preview",
"previousValue": "Previous value:",
"remove": "Remove",
"required": "Required",
"reuseValue": "Reuse value",
"save": "Save",
"search": "Search",
"searching": "Searching",
"submitting": "Submitting",
"thisList": "this list",
"time": "Time",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "Try opening another form from"
"tryAgainMessage": "Try opening another form from",
"unspecified": "Unspecified",
"upload": "Upload",
"uploadImage": "Upload image",
"uploadedPhoto": "Uploaded photo",
"valuesOutOfBound": "Some of the values are out of bounds"
}
33 changes: 32 additions & 1 deletion packages/esm-form-engine-app/translations/es.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
{
"activeLoadingIndicator": "Indicador de carga activo",
"add": "Agregar",
"addCameraImage": "Agregar imagen de cámara",
"addFile": "Agregar archivos",
"cameraCapture": "Captura de cámara",
"cancel": "Cancelar",
"chooseAnOption": "Elegir una opción",
"close": "Cerrar",
"closeCamera": "Cerrar cámara",
"closeThisPanel": "Cerrar este panel",
"closesNotification": "Cerrar notificación",
"collapseAll": "Colapsar todo",
"createdRecord": "Registro creado",
"createdRecordDescription": "Se creó un nuevo encuentro",
"deleteQuestion": "Eliminar pregunta",
"deleteQuestionConfirmation": "¿Está seguro de que desea eliminar esta pregunta?",
"deleteQuestionExplainerText": "Esta acción no puede ser deshecha.",
"errorDescriptionTitle": "Error al guardar el formulario",
"errorRenderingField": "Error al renderizar el campo",
"errorTitle": "Hubo un error con este formulario",
"expandAll": "Expandir todo",
"fileUploadDescription": "",
"fileUploadDescriptionAny": "Subir cualquier tipo de archivo",
"loading": "Cargando",
"notification": "Notificación",
"or": "o",
"preview": "Vista previa",
"previousValue": "Valor anterior:",
"removeGroup": "Eliminar grupo",
"revert": "Revertir",
"save": "Guardar",
"search": "Buscar",
"submitting": "Enviando",
"thisList": "esta lista",
"time": "Tiempo",
"toggleCollapseOrExpand": "Alternar entre colapsar o expandir",
"tryAgainMessage": "Intente abrir otro formulario de"
"tryAgainMessage": "Intente abrir otro formulario de",
"unspecified": "No especificado",
"unspecifyAll": "No especificar todo",
"updatedRecord": "Registro actualizado",
"updatedRecordDescription": "Se actualizó el encuentro del paciente",
"upload": "Subir",
"uploadedPhoto": "Foto subida",
"uploadImage": "Subir imagen"
}
35 changes: 33 additions & 2 deletions packages/esm-form-engine-app/translations/fr.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
{
"activeLoadingIndicator": "Indicateur de chargement actif",
"add": "Ajouter",
"addCameraImage": "Ajouter une image de la caméra",
"addFile": "Ajouter des fichiers",
"cameraCapture": "Capture de la caméra",
"cancel": "Annuler",
"chooseAnOption": "Choisissez une option",
"close": "Fermer",
"closeCamera": "Fermer la caméra",
"closeThisPanel": "Close this panel",
"closesNotification": "Ferme la notification",
"collapseAll": "Réduire tout",
"createdRecord": "Enregistrement créé",
"createdRecordDescription": "Une nouvelle rencontre a été créée",
"deleteQuestion": "Supprimer la question",
"deleteQuestionConfirmation": "Etes vous sûr de vouloir supprimer la question?",
"deleteQuestionExplainerText": "Cette action ne peut pas être annulée.",
"errorDescriptionTitle": "Erreur lors de l'enregistrement du formulaire",
"errorRenderingField": "Erreur lors du rendu du champ",
"errorTitle": "There was an error with this form",
"expandAll": "Etendre tout",
"fileUploadDescription": "",
"fileUploadDescriptionAny": "Télécharger n'importe quel type de fichier",
"loading": "Loading",
"notification": "Notification",
"or": "or",
"preview": "Aperçu",
"previousValue": "Valeur précédente :",
"removeGroup": "Supprimer le groupe",
"revert": "Revenir",
"save": "Enregistrer",
"search": "Recherche",
"submitting": "Soumission",
"thisList": "cette liste",
"toggleCollapseOrExpand": "Basculer entre réduire ou étendre",
"tryAgainMessage": "Try opening another form from"
"time": "Temps",
"toggleCollapseOrExpand": "Basculer réduire ou développer",
"tryAgainMessage": "Try opening another form from",
"unspecified": "Non spécifié",
"unspecifyAll": "Tout non spécifié",
"updatedRecord": "Enregistrement mis à jour",
"updatedRecordDescription": "La rencontre du patient a été mise à jour",
"upload": "Télécharger",
"uploadedPhoto": "Photo téléchargée",
"uploadImage": "Télécharger une image"
}
43 changes: 37 additions & 6 deletions packages/esm-form-engine-app/translations/km.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
{
"cancel": "Cancel",
"activeLoadingIndicator": "សិទ្ធិដំណើរការអត្ថបទកំពុងស្រលាញ់",
"add": "បន្ថែម",
"addCameraImage": "បន្ថែមរូបភាពសាកល្បង",
"addFile": "បន្ថែមឯកសារ",
"cameraCapture": "ការថតរូបភាពតាមកាមេរ៉ា",
"cancel": "បោះបង់",
"chooseAnOption": "ជ្រើសរើសជម្រើស",
"close": "បិទ",
"closeCamera": "បិទកាមេរ៉ា",
"closeThisPanel": "បិទប្រអប់នេះ",
"collapseAll": "Collapse all",
"closesNotification": "បិទការជូនដំណឹង",
"collapseAll": "លាក់ទាំងអស់",
"createdRecord": "បានបង្កើតកំណត់ហេតុ",
"createdRecordDescription": "បានបង្កើតការចូលទិន្ន័រថ្មី",
"deleteQuestion": "Delete question",
"deleteQuestionConfirmation": "Are you sure you want to delete this question?",
"deleteQuestionExplainerText": "This action cannot be undone.",
"errorDescriptionTitle": "កំហុសព័ត៌មានលទ្ធផល",
"errorRenderingField": "កំហុសការបង្ហាញវាល",
"errorTitle": "ទម្រង់នេះមិនដំណើរការ",
"expandAll": "Expand all",
"loading": "កំពុងចម្លង...",
"expandAll": "ពង្រីកទាំងអស់",
"fileUploadDescription": "",
"fileUploadDescriptionAny": "ផ្ទុកឡើងឯកសារប្រភេទណាមួយ",
"loading": "កំពុងដំណើរការ",
"notification": "ការជូនដំណឹង",
"or": "",
"preview": "មើលជាមុន",
"previousValue": "តម្លៃមុន:",
"removeGroup": "យកក្រុមចេញ",
"revert": "ត្រឡប់ទៅកាន់ដំណើរការដូចដើម",
"save": "រក្សាទុក",
"search": "ស្វែងរក",
"submitting": "កំពុងដាក់ស្នើ",
"thisList": "បញ្ជីនេះ។",
"toggleCollapseOrExpand": "Toggle collapse or expand",
"tryAgainMessage": "ព្យាយាមបើកទម្រង់ផ្សេងទៀត"
"time": "ពេលវេលា",
"toggleCollapseOrExpand": "បិទឬពង្រីកជាមួយគ្រាប់គ្នា",
"tryAgainMessage": "ព្យាយាមបើកទម្រង់ផ្សេងទៀត",
"unspecified": "មិនបានបញ្ជាក់",
"unspecifyAll": "មិនបានបញ្ជាក់ទាំងអស់",
"updatedRecord": "កំណត់ហេតុដែលបានធ្វើបច្ចុប្បន្នភាព",
"updatedRecordDescription": "ការស៊ើបអ្នកជម្រើសបានធ្វើបច្ចុប្បន្នភាព",
"upload": "ផ្ទុកឡើង",
"uploadedPhoto": "រូបភាពដែលបានផ្ទុកឡើង",
"uploadImage": "ផ្ទុករូបភាពឡើង"
}
Loading

0 comments on commit 816a907

Please sign in to comment.