-
Notifications
You must be signed in to change notification settings - Fork 68
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
(chore) Transifex migration for translations to @openmrs/esm-form-engine-app #457
base: main
Are you sure you want to change the base?
Conversation
@@ -98,7 +99,7 @@ function PageLink({ page, currentActivePage, pagesWithErrors, requestPage }: Pag | |||
e.preventDefault(); | |||
requestPage(page.id); | |||
}}> | |||
<span>{page.label}</span> | |||
<span>{t(page.label)}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds support for translations to sidenav menu-items
Size Change: -267 kB (-17.45%) 👏 Total Size: 1.27 MB
ℹ️ View Unchanged
|
I hoped this was about setting up Transifex integration for this repo and not migrating the translation setup to the form-engine-app? Could I be missing something @pirupius? |
@samuelmale Initially the plan was to integrate Transifex but on second review and interaction with @ibacher, he pointed out that the convention for that integration is for apps and not libraries. That's the same convention that has been implemented for esm-core libraries as well as patient commons lib within the patient chart. |
I’m concerned about the tight coupling between the “form-engine-app” and the library. This approach assumes that the form engine is only intended for use within the patient chart. As a result, internationalization (i18n) would break for those using the form engine outside the patient chart, or for users with a custom ESM designed for dispensing forms within the patient chart. |
Maybe @vasharma05 and @ibacher can correct me on this; Based on the setup and the way it has been implemented with other libraries, it isn't necessarily restricting the use of the translations to only the patient chart but it's just using the namespace This is an example with form builder with the local version of my The catch would be if an implementation is using the library but not using the form-engine-app which sounds unlikely. |
Requirements
Summary
As part of the migration to use Transifix and align missing translations from this repo
Screenshots
Sample screenshot in Arabic
Related Issue
Other