feat(l10n): add daysInMonth and aria labels to az locale - #3131
Open
umudhasanli wants to merge 1 commit into
Open
feat(l10n): add daysInMonth and aria labels to az locale#3131umudhasanli wants to merge 1 commit into
umudhasanli wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Azerbaijani locale (
src/l10n/az.ts) was missing several optional fields that theCustomLocaleschema insrc/types/locale.tsdeclares and that many other locale files already provide.Changes
daysInMonthadded. 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.yearAriaLabel/monthAriaLabel/hourAriaLabel/minuteAriaLabeladded —"İl","Ay","Saat","Dəqiqə". Without these, screen readers in Azerbaijani UIs fall back to the English defaults indefault.ts("Year", "Month", "Hour", "Minute"), which is poor accessibility for Azerbaijani-speaking users.Header comment corrected from
Azerbaijan localstoAzerbaijani locals. The other locale files all use the language adjective in this slot (German,French,Russian,Turkish, etc.); "Azerbaijan" is the country name. (The plurallocalstypo is preserved to stay consistent with every other file insrc/l10n/.)No existing fields were touched, so nothing should change for current users of the
azlocale.