Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Datepicker Localization Bug: Arabic Months Short Names Displayed as Numbers #2302

Open
raghoottamkatti opened this issue Oct 15, 2024 · 4 comments

Comments

@raghoottamkatti
Copy link

I am experiencing an issue with the jQuery datepicker when the localization is set to "ar" (Arabic). Instead of showing the short names for the months, the datepicker displays them as numbers (1, 2, 3, etc.).

Steps to Reproduce:

  1. Initialize the jQuery datepicker with the following settings:
    javascript
    $('#datepicker').datepicker({
    dateFormat: 'mm/dd/yy',
    changeMonth: true,
    changeYear: true,
    regional: 'ar' // Arabic localization
    });
  2. Open the datepicker.
  3. Observe the month short names displayed.

Expected Behavior:
The month short names should be displayed as:

  • ين (Jan)
  • فب (Feb)
  • مار (Mar)
  • إب (Apr)
  • ماي (May)
  • يون (Jun)
  • يول (Jul)
  • أغس (Aug)
  • سب (Sep)
  • أكت (Oct)
  • نوف (Nov)
  • ديس (Dec)

Actual Behavior:
The month short names are displayed as numbers (1, 2, 3, ...).

image
image

@mgol
Copy link
Member

mgol commented Oct 17, 2024

Thanks for the report. Does the issue you describe exist when jQuery UI 1.12.1 is used or only with jQuery UI 1.13.0 or newer?

@raghoottamkatti
Copy link
Author

@mgol the issue occurs when using jQueryUI 1.12.1 & 1.11.1 jquery-ui-i18n.min.js

@markvantilburg
Copy link
Contributor

Is it not just the language file that does not have them?

monthNamesShort: [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ],

@mgol
Copy link
Member

mgol commented Oct 25, 2024

Thanks for the report. Since the issue is already in 1.12, given limited team resources it's not likely to be fixed by the UI team; see the project status at https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/. PRs are welcome if they're not too complex and contain tests.

# for free to join this conversation on GitHub. Already have an account? # to comment
Development

No branches or pull requests

3 participants