Skip to content

feat(locale): add Farsi airline module locale#3789

Open
Javid-Izadfar wants to merge 1 commit intofaker-js:nextfrom
Javid-Izadfar:fa-locale-airline
Open

feat(locale): add Farsi airline module locale#3789
Javid-Izadfar wants to merge 1 commit intofaker-js:nextfrom
Javid-Izadfar:fa-locale-airline

Conversation

@Javid-Izadfar
Copy link
Copy Markdown
Contributor

Descriptions

This change adds Farsi (fa) data for the airline module so Faker can return localized names for airports, carriers, and aircraft types when using the Farsi locale. Airport and airline entries mix Iranian locations and operators with widely used international airlines and hubs. Aircraft display names are translated (manufacturer and common type wording in Persian) and use Persian digits in the name field where numbers appear; iataCode / iataTypeCode values stay ASCII for compatibility with the rest of the API.

Changes

  • Add src/locales/fa/airline/ with:
    • airport.ts — Farsi airport names with IATA codes (sorted by code).
    • airline.ts — Farsi airline names with IATA codes (sorted by code).
    • airplane.ts — Farsi airplane type labels with IATA equipment codes, Persian numerals in names.
    • index.tsAirlineDefinition wiring the three datasets.
  • Register the module in src/locales/fa/index.ts (airline import and LocaleDefinition field).
  • Update test/__snapshots__/locale-data.spec.ts.snap so the fa “known characters” allowlist includes the extra Latin characters used in codes/names and Persian digits ۰–۹.

@Javid-Izadfar Javid-Izadfar requested a review from a team as a code owner April 5, 2026 17:15
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 5, 2026

Deploy Preview for fakerjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7eba798
🔍 Latest deploy log https://app.netlify.com/projects/fakerjs/deploys/69d298cab586850008570271
😎 Deploy Preview https://deploy-preview-3789.fakerjs.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.88%. Comparing base (b4acc28) to head (7eba798).
⚠️ Report is 11 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #3789   +/-   ##
=======================================
  Coverage   98.88%   98.88%           
=======================================
  Files         886      887    +1     
  Lines        3062     3062           
  Branches      556      556           
=======================================
  Hits         3028     3028           
  Misses         30       30           
  Partials        4        4           
Files with missing lines Coverage Δ
src/locales/fa/airline/index.ts 100.00% <100.00%> (ø)
src/locales/fa/index.ts 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

🚀 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.

2 participants