Uploaded image for project: 'stripes-components'
  1. stripes-components
  2. STCOM-470

FOLIO Calendar Dates issue when in RTL - Forcing Hindu Numerals Shape

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      stripes-force 92, stripes-force 93, stripes-force 94
    • Development Team:
      Stripes Force

      Description

      Hello مرحبا

      Using MS Windows Numbering system, users has the options to select between Arabic, Hindu and Contextual (Hindu numerals shape with Arabic text, and Arabic Numerals Shapes with English text) to choose from.

      Numbers are numbers regardless in what shape they are represented. This is how I understand the issue as a programmer. Therefore, the numbers shape should be left to the user to decide and thus the Windows default should be forced not the Hindu shape in RTL and Arabic shape in LTR, as the case now with FOLIO when entering a User's Birth date or Expire date.

      With FOLIO date calendar, I faced the issue of FOLIO forcing Hindu shape, and that is causing an error when FOLIO tries to save the dates!

      Thanks,
      Massoud.

      Per Zak

      The month and year are set on Datepicker/Calendar.js#L418.

      The day-of-week abbreviations are set on DatePicker/Calendar#L357.

      The best way to code this is probably to get a full day-name and month-name values out of the moment formatter and then feed those values into a translation key dynamically, e.g. use stripes-components.datePicker.abbr.${dayName} to generate a key like "stripes-components.datePicker.abbr.Monday" with a value like Mo for English, Lu for French, etc.

      Per John

      • date fields were set to have hard-coded date formats and backendDateStandards in the first place - seems like All fields should handle localized formats, save in ISO format comfortably (the defaults of Datepicker)

        TestRail: Results

          Attachments

          1. after.png
            12 kB
            Massoud M. ALShareef
          2. Befor.png
            12 kB
            Massoud M. ALShareef
          3. Calendar dialogbox Locale while in RTL.png
            85 kB
            Massoud M. ALShareef
          4. FOLIO Date Calendar add or edit issue when in RTL.png
            88 kB
            Massoud M. ALShareef
          5. FOLIO date formats - before and after Kware implementation.png
            87 kB
            Massoud M. ALShareef
          6. Hindu Numbers in Date fields Issue in CheckOut App.png
            132 kB
            Massoud M. ALShareef
          7. Hindu Numbers in Date fields Issue in Users app.png
            139 kB
            Massoud M. ALShareef
          8. Locale date-format.png
            134 kB
            Massoud M. ALShareef
          9. New Arabic User Addition - dates fields numerals are forced to be of type Hindu.png
            76 kB
            Massoud M. ALShareef
          10. New Arabic User Addition problems with Hindu Numerals in dates fields.png
            75 kB
            Massoud M. ALShareef
          11. New Arabic User Addition problems with Hindu Numerals in dates fields2.png
            79 kB
            Massoud M. ALShareef

            Issue Links

              Activity

                People

                Assignee:
                JohnC John Coburn
                Reporter:
                massoud Massoud M. ALShareef
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases