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

(feat) Added translation for patient flags workspace #1624

Merged
merged 1 commit into from
Jan 29, 2024
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
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
Loading