Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1396

RA-Datepicker Component: Add localization support

    Details

    • Type: Story
    • Status: Cancelled
    • Priority: Should
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      We will need to add localization support to the new datepicker.

      I did some quick testing of this and it seems straightforward to bundle in a specific locale file using webpack as so:

      import 'bootstrap-datepicker/dist/locales/bootstrap-datepicker.fr.min.js';
      

      Rafal Korytkowski do you think it just makes sense to bundle in the files for all the locales OpenMRS currently supports?

      Beyond that, we will need to pass in the current locale to the datepicker, but I believe I've done something similar elsewhere and therefore hopefully should be somewhat straightforward to do.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mogoodrich Mark Goodrich
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: