Repository navigation
feat: Add Uyghur (ug) locale - #3373
Open
FullStraing wants to merge 1 commit into
Open
FullStraing wants to merge 1 commit into
FullStraing wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
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 asfa.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'sug-cnlocale, which agree on all names.Notes for reviewers
weekdaysMinuses CLDR's narrow single-letter forms, following the same pattern asfa.ordinalreturns the number as-is (no suffix), matching the precedent set byfa.js/ur.jsfor Perso-Arabic script locales.test/locale/ug.test.jsis included (date formatting, meridiem, and relative time); it passes locally along with lint.Checklist