Skip to content

Commit

Permalink
(feat) Added translation for patient flags workspace (#1624)
Browse files Browse the repository at this point in the history
Added translation for patient flags workspace
  • Loading branch information
vasharma05 authored Jan 29, 2024
1 parent daad56a commit 49ece73
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/esm-patient-flags-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test:watch": "cross-env TZ=UTC jest --watch --config jest.config.js --color",
"coverage": "yarn test --coverage",
"verify": "turbo lint typescript coverage",
"extract-translations": "i18next 'src/**/*.component.tsx' --config ../../tools/i18next-parser.config.js"
"extract-translations": "i18next 'src/**/*.component.tsx' 'src/index.ts' --config ../../tools/i18next-parser.config.js"
},
"browserslist": [
"extends browserslist-config-openmrs"
Expand Down
7 changes: 6 additions & 1 deletion packages/esm-patient-flags-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ export const flagsOverview = getSyncLifecycle(flagsOverviewComponent, {
moduleName,
});

export const editFlagsSidePanel = getAsyncLifecycle(() => import('./flags/flags-list.component'), {
export const editPatientFlagsWorkspace = getAsyncLifecycle(() => import('./flags/flags-list.component'), {
featureName: 'edit-flags-side-panel-form',
moduleName,
});

/**
* DO NOT REMOVE THE FOLLOWING TRANSLATIONS
* t('editPatientFlags','Edit patient flags')
*/
7 changes: 5 additions & 2 deletions packages/esm-patient-flags-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
"extensions": [
{
"name": "edit-flags-side-panel-form",
"component": "editFlagsSidePanel",
"component": "editPatientFlagsWorkspace",
"meta": {
"title": "Edit patient flags"
"title": {
"key": "editPatientFlags",
"default":"Edit patient flags"
}
},
"featureFlag": "patientFlags"
},
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-flags-app/translations/am.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"discard": "Discard",
"edit": "Edit",
"editFlags": "Edit flags",
"editPatientFlags": "Edit patient flags",
"enabledFlag": "Enabled flag",
"enablingFlag": "Enabling flag...",
"flagCount_one": "{{count}} risk flag",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-flags-app/translations/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"discard": "تجاهل",
"edit": "تعديل",
"editFlags": "تعديل العلامات",
"editPatientFlags": "Edit patient flags",
"enabledFlag": "تم تفعيل العلامة",
"enablingFlag": "جارٍ تفعيل العلامة...",
"flagCount_zero": "{{count}} علامة خطر",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-flags-app/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"discard": "Discard",
"edit": "Edit",
"editFlags": "Edit flags",
"editPatientFlags": "Edit patient flags",
"enabledFlag": "Enabled flag",
"enablingFlag": "Enabling flag...",
"flagCount_one": "{{count}} risk flag",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-flags-app/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"discard": "Descartar",
"edit": "Editar",
"editFlags": "Editar banderas",
"editPatientFlags": "Edit patient flags",
"enabledFlag": "Bandera activada",
"enablingFlag": "Activando bandera...",
"flagCount_one": "{{count}} bandera de riesgo",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-flags-app/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"discard": "Discard",
"edit": "Edit",
"editFlags": "Edit flags",
"editPatientFlags": "Edit patient flags",
"enabledFlag": "Enabled flag",
"enablingFlag": "Enabling flag...",
"flagCount_one": "{{count}} risk flag",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-flags-app/translations/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"discard": "Discard",
"edit": "Edit",
"editFlags": "Edit flags",
"editPatientFlags": "Edit patient flags",
"enabledFlag": "Enabled flag",
"enablingFlag": "Enabling flag...",
"flagCount_one": "{{count}} risk flag",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-flags-app/translations/km.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"discard": "Discard",
"edit": "Edit",
"editFlags": "Edit flags",
"editPatientFlags": "Edit patient flags",
"enabledFlag": "Enabled flag",
"enablingFlag": "Enabling flag...",
"flagCount_other": "{{count}} risk flags",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-flags-app/translations/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"discard": "Discard",
"edit": "Edit",
"editFlags": "Edit flags",
"editPatientFlags": "Edit patient flags",
"enabledFlag": "Enabled flag",
"enablingFlag": "Enabling flag...",
"flagCount_other": "{{count}} risk flags",
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-flags-app/translations/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"discard": "Discard",
"edit": "Edit",
"editFlags": "Edit flags",
"editPatientFlags": "Edit patient flags",
"enabledFlag": "Enabled flag",
"enablingFlag": "Enabling flag...",
"flagDisabled": "Flag disabled",
Expand Down

0 comments on commit 49ece73

Please sign in to comment.