Skip to content

feat(locale): add vehicle data for ko - #4265

Merged
ST-DDT merged 8 commits into
faker-js:nextfrom
nococn:feat/locale-ko-vehicle
Nov 18, 2026
Merged

ST-DDT merged 8 commits into
faker-js:nextfrom
nococn:feat/locale-ko-vehicle

Conversation

@nococn

@nococn nococn commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

What is the reason for this PR?

The ko locale has no vehicle module, so calls like fakerKO.vehicle.type(), fakerKO.vehicle.fuel(), and fakerKO.vehicle.model() fall back to English values when generating Korean test data. Following PR #4263 (food), this PR adds the corresponding vehicle dataset for ko.

What changed

  • Adds src/locales/ko/vehicle/ with 5 definition modules (bicycle_type, fuel, manufacturer, model, type) and its index, registered in the ko locale definition.
  • Entries follow standard Korean terminology and are sorted by Korean collation order.
  • Updates the locale-data snapshot accordingly.

@nococn
nococn requested a review from a team as a code owner November 9, 2026 12:24
@netlify

netlify Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for fakerjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 76167fd
🔍 Latest deploy log https://app.netlify.com/projects/fakerjs/deploys/6af1bb7d69a4583afba6b20d
😎 Deploy Preview https://deploy-preview-4265.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.

@codecov

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.14%. Comparing base (5415aec) to head (76167fd).

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #4265   +/-   ##
=======================================
  Coverage   99.14%   99.14%           
=======================================
  Files        1179     1180    +1     
  Lines        3976     3977    +1     
  Branches      723      709   -14     
=======================================
+ Hits         3942     3943    +1     
  Misses         29       29           
  Partials        5        5           
Files with missing lines Coverage Δ
src/locales/ko/index.ts 100.00% <ø> (ø)
src/locales/ko/vehicle/index.ts 100.00% <100.00%> (ø)
🚀 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 p: 1-normal Nothing urgent c: locale Permutes locale definitions m: vehicle Something is referring to the vehicle module labels Nov 9, 2026
@ST-DDT ST-DDT added this to the v11.0 milestone Nov 9, 2026

@ST-DDT ST-DDT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but likely to cause merge conflict with the other KO locale PRs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the Korean vehicle locale additions.

No open issues 🎉

What changed in this PR

Adds Korean vehicle data so the ko locale can generate localized vehicle values instead of falling back to English, extending the locale coverage introduced by the earlier food-data PR.

Changes:

  • Adds Korean bicycle types, fuels, manufacturers, models, and vehicle types.
  • Registers the vehicle definitions in the Korean locale.
  • Updates the locale character snapshot for the new entries.
File Description
test/​__snapshots__/​locale-data.spec.ts.snap Updates the Korean character inventory.
src/​locales/​ko/​vehicle/​type.ts Adds vehicle types.
src/​locales/​ko/​vehicle/​model.ts Adds vehicle model names.
src/​locales/​ko/​vehicle/​manufacturer.ts Adds manufacturer names.
src/​locales/​ko/​vehicle/​index.ts Exports the five vehicle datasets.
src/​locales/​ko/​vehicle/​fuel.ts Adds fuel and powertrain terms.
src/​locales/​ko/​vehicle/​bicycle_type.ts Adds bicycle types.
src/​locales/​ko/​index.ts Registers the vehicle module.

Review effort: Balanced

@nococn

nococn commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review! Whichever one you merge first, I'll rebase the other onto next and resolve the conflicts right away.

@ST-DDT
ST-DDT enabled auto-merge November 12, 2026 08:20
@ST-DDT
ST-DDT added this pull request to the merge queue Nov 18, 2026
Merged via the queue into faker-js:next with commit cfa7e77 Nov 18, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: locale Permutes locale definitions m: vehicle Something is referring to the vehicle module p: 1-normal Nothing urgent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants