Skip to content

feat: Add Uyghur (ug) locale - #3373

Open
FullStraing wants to merge 1 commit into
iamkun:devfrom
FullStraing:feat/add-uyghur-locale
Open

FullStraing wants to merge 1 commit into
iamkun:devfrom
FullStraing:feat/add-uyghur-locale

Conversation

@FullStraing

Copy link
Copy Markdown

Closes #171 (partially - adds one more requested locale)

What does this PR do?

Adds the Uyghur (ug) locale to Day.js, following the same structure as fa.js, ur.js, and the open Pashto PR #3168.

Uyghur is spoken by roughly 10 million people, primarily in Xinjiang, China, but was not yet supported.

Data sources

Day/month names, week start (Monday, matching the China convention), meridiem forms, and relative time patterns were sourced from the Unicode CLDR dataset (cldr-json/cldr-dates-full/main/ug/) and cross-checked against moment.js's ug-cn locale, which agree on all names.

Notes for reviewers

  • weekdaysMin uses CLDR's narrow single-letter forms, following the same pattern as fa.
  • ordinal returns the number as-is (no suffix), matching the precedent set by fa.js/ur.js for Perso-Arabic script locales.
  • A test file test/locale/ug.test.js is included (date formatting, meridiem, and relative time); it passes locally along with lint.

Checklist

  • Follows existing locale file structure/conventions
  • Sourced from authoritative CLDR data
  • Tests added and passing

This branch has not been deployed

No deployments
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.

Locale Contributions Wanted 🙋🙏

1 participant