Skip to content

refactor(locale): add en_NP and change ne to Devangari#3868

Open
matthewmayer wants to merge 1 commit into
faker-js:nextfrom
matthewmayer:nepali-refactor
Open

refactor(locale): add en_NP and change ne to Devangari#3868
matthewmayer wants to merge 1 commit into
faker-js:nextfrom
matthewmayer:nepali-refactor

Conversation

@matthewmayer

@matthewmayer matthewmayer commented May 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #3655

An alternative approach to #3828 without needing semver-major breaking changes. The existing English Nepal content is copied to en_NP, and ne is replaced with Devangari transliterations for city names, state names, first and last names.

Fixes faker-js#3655

An alternative approach to faker-js#3828 without semver-major breaking changes
@netlify

netlify Bot commented May 31, 2026

Copy link
Copy Markdown

Deploy Preview for fakerjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c46ab7b
🔍 Latest deploy log https://app.netlify.com/projects/fakerjs/deploys/6a1c5cd327e739000810fff2
😎 Deploy Preview https://deploy-preview-3868.fakerjs.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@matthewmayer matthewmayer changed the title refactor(locale): add en_NP and change np to Devangari refactor(locale): add en_NP and change ne to Devangari May 31, 2026
@matthewmayer matthewmayer marked this pull request as ready for review May 31, 2026 16:09
@matthewmayer matthewmayer requested a review from a team as a code owner May 31, 2026 16:09
@codecov

codecov Bot commented May 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.92%. Comparing base (5bd8709) to head (c46ab7b).

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #3868   +/-   ##
=======================================
  Coverage   98.92%   98.92%           
=======================================
  Files         908      917    +9     
  Lines        3159     3168    +9     
  Branches      581      564   -17     
=======================================
+ Hits         3125     3134    +9     
  Misses         30       30           
  Partials        4        4           
Files with missing lines Coverage Δ
src/locale/en_NP.ts 100.00% <100.00%> (ø)
src/locale/index.ts 100.00% <ø> (ø)
src/locales/en_NP/company/index.ts 100.00% <100.00%> (ø)
src/locales/en_NP/index.ts 100.00% <100.00%> (ø)
src/locales/en_NP/internet/index.ts 100.00% <100.00%> (ø)
src/locales/en_NP/location/index.ts 100.00% <100.00%> (ø)
src/locales/en_NP/metadata.ts 100.00% <100.00%> (ø)
src/locales/en_NP/person/index.ts 100.00% <100.00%> (ø)
src/locales/en_NP/phone_number/format/index.ts 100.00% <100.00%> (ø)
src/locales/en_NP/phone_number/index.ts 100.00% <100.00%> (ø)
... and 1 more
🚀 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.

@ST-DDT ST-DDT added c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs c: locale Permutes locale definitions p: 1-normal Nothing urgent labels May 31, 2026
@ST-DDT

ST-DDT commented May 31, 2026

Copy link
Copy Markdown
Member

I would still classify this as expectation breaking, though I wont block it.

@matthewmayer

Copy link
Copy Markdown
Contributor Author

I would still classify this as expectation breaking, though I wont block it.

i see where you're coming from, though i'd say we have a general policy that changes/improvements to data can be done in any patch release. This isn't much different to for example someone relying on:

fakerXX.location.state() // New York

and then a patch release adds localized location.state data for fakerXX, and now:

fakerXX.location.state() // Localized state name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: locale Permutes locale definitions c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs p: 1-normal Nothing urgent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ne locale is not in Nepali

2 participants