Skip to content

feat(l10n): add daysInMonth and aria labels to az locale - #3131

Open
umudhasanli wants to merge 1 commit into
flatpickr:masterfrom
umudhasanli:add-az-locale-aria-labels-and-days-in-month
Open

feat(l10n): add daysInMonth and aria labels to az locale#3131
umudhasanli wants to merge 1 commit into
flatpickr:masterfrom
umudhasanli:add-az-locale-aria-labels-and-days-in-month

Conversation

@umudhasanli

Copy link
Copy Markdown

The Azerbaijani locale (src/l10n/az.ts) was missing several optional fields that the CustomLocale schema in src/types/locale.ts declares and that many other locale files already provide.

Changes

  1. daysInMonth added. Mirrors the default locale's [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], giving date validation the same data Gregorian-calendar locales rely on.

  2. yearAriaLabel / monthAriaLabel / hourAriaLabel / minuteAriaLabel added — "İl", "Ay", "Saat", "Dəqiqə". Without these, screen readers in Azerbaijani UIs fall back to the English defaults in default.ts ("Year", "Month", "Hour", "Minute"), which is poor accessibility for Azerbaijani-speaking users.

  3. Header comment corrected from Azerbaijan locals to Azerbaijani locals. The other locale files all use the language adjective in this slot (German, French, Russian, Turkish, etc.); "Azerbaijan" is the country name. (The plural locals typo is preserved to stay consistent with every other file in src/l10n/.)

No existing fields were touched, so nothing should change for current users of the az locale.

The Azerbaijani locale was missing several optional CustomLocale fields
that are present in the schema and provided by many other locales:

- daysInMonth: standard Gregorian day counts, mirroring the default locale,
  so date validation has the data it needs.
- yearAriaLabel / monthAriaLabel / hourAriaLabel / minuteAriaLabel:
  accessible labels for the year/month inputs and time spinners. Without
  these, screen readers in Azerbaijani contexts fall back to the English
  defaults from default.ts.

Also corrects the header comment: "Azerbaijan" is the country name; the
language adjective used in the other locale files is "Azerbaijani"
(cf. German, French, Russian, Turkish).
8co added a commit to 8co/flatpickr-next that referenced this pull request Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant