Skip to content

feat(isAlpha, isAlphanumeric): add Tajik locale, tg-TJ - #2975

Open
ismoil77 wants to merge 1 commit into
validatorjs:masterfrom
ismoil77:feat/locale-tajik
Open

ismoil77 wants to merge 1 commit into
validatorjs:masterfrom
ismoil77:feat/locale-tajik

Conversation

@ismoil77

Copy link
Copy Markdown

Adds Tajik (tg-TJ, Cyrillic) to isAlpha and isAlphanumeric, and to the comma-decimal list used by isDecimal / isFloat. Modelled on the kk-KZ change in #2226.

  • src/lib/alpha.js: tg-TJ = Russian Cyrillic А-Я and Ё plus the Tajik letters Ғ Ӣ Қ Ӯ Ҳ Ҷ (upper and lower case); tg-TJ added to commaDecimal.
  • test/validators.test.js: isAlpha and isAlphanumeric tests next to the kk-KZ ones.
  • README.md: tg-TJ added to the locale lists of isAlpha, isAlphanumeric, isDecimal and isFloat.

I am a native Tajik speaker.

References:

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9ff3424) to head (7942197).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2975   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       114           
  Lines         2599      2599           
  Branches       658       658           
=========================================
  Hits          2599      2599           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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