Uploaded image for project: 'OpenMRS 3.x Frontend'
  1. OpenMRS 3.x Frontend
  2. O3-2128

Form Engine: support translation/localization in labels

    XMLWordPrintable

Details

    • Enhancement
    • Status: To Do
    • Must
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      In order to be able  to translate forms into multiple languages, the "label" property in the Form Schema (for all elements) should support localization.

      A simple solution would be to allow users to supply react-18next property codes and then call the t function with that label, ie just run each label through:

      t(label, label)

       One downside to this is that I don't think we have a way to provide react-18next message codes outside of bundling translation files with-in ESMs.

       

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mogoodrich Mark Goodrich
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated: