Repository navigation
feat(locale): add vehicle data for ko - #4265
Conversation
This file contains vehicle-related definitions for the Korean locale.
✅ Deploy Preview for fakerjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
🚀 New features to boost your workflow:
|
ST-DDT
left a comment
There was a problem hiding this comment.
Approved, but likely to cause merge conflict with the other KO locale PRs.
There was a problem hiding this comment.
🟢 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
|
Thanks for the review! Whichever one you merge first, I'll rebase the other onto |
What is the reason for this PR?
The
kolocale has novehiclemodule, so calls likefakerKO.vehicle.type(),fakerKO.vehicle.fuel(), andfakerKO.vehicle.model()fall back to English values when generating Korean test data. Following PR #4263 (food), this PR adds the corresponding vehicle dataset forko.What changed
src/locales/ko/vehicle/with 5 definition modules (bicycle_type,fuel,manufacturer,model,type) and its index, registered in thekolocale definition.