Skip to content

feat(locale): add Japanese job definitions for person module#3705

Merged
xDivisionByZerox merged 2 commits intofaker-js:nextfrom
atzzCokeK:feat/ja-person-job
Jan 27, 2026
Merged

feat(locale): add Japanese job definitions for person module#3705
xDivisionByZerox merged 2 commits intofaker-js:nextfrom
atzzCokeK:feat/ja-person-job

Conversation

@atzzCokeK
Copy link
Contributor

@atzzCokeK atzzCokeK commented Jan 26, 2026

Summary

Add job-related definitions for the Japanese (ja) locale in the person module.

This enables faker.person.jobTitle(), faker.person.jobDescriptor(), faker.person.jobArea(), and faker.person.jobType() to generate Japanese job titles.

Added files

job_descriptor.ts - Job title modifiers

シニア, リード, チーフ, 主任, 統括, グローバル, 国内, 海外, 戦略, 事業, 営業, 技術, 開発, 製品, 顧客, 法人, 個人

job_type.ts - Job positions

マネージャー, エンジニア, デザイナー, アナリスト, コンサルタント, ディレクター, プロデューサー, スペシャリスト, コーディネーター, アドバイザー, プランナー, アシスタント, 担当, 責任者, 部長, 課長, 係長, 主査, 専門職, 技師

job_area.ts - Job areas/departments

営業, マーケティング, 人事, 経理, 財務, 総務, 法務, 広報, 企画, 開発, 研究, 製造, 品質管理, 物流, 購買, 情報システム, カスタマーサポート, セールス, ソリューション, プロダクト, インフラ, セキュリティ, データ, クリエイティブ

job_title_pattern.ts - Japanese-specific pattern without spaces

export default ['{{person.jobDescriptor}}{{person.jobArea}}{{person.jobType}}'];

Japanese doesn't use spaces between words, so the pattern generates titles like:

  • シニア営業マネージャー (not "シニア 営業 マネージャー")
  • リード開発エンジニア
  • グローバルマーケティングディレクター

Example output

Using faker.person.jobTitle():

  • シニア営業マネージャー
  • リード開発エンジニア
  • グローバルマーケティングディレクター
  • 主任人事担当
  • チーフ開発エンジニア

Test plan

  • pnpm run generate:locales executed successfully
  • pnpm run preflight passed (all 52056 tests passed)
  • Snapshot updated as expected

@netlify
Copy link

netlify bot commented Jan 26, 2026

Deploy Preview for fakerjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7196604
🔍 Latest deploy log https://app.netlify.com/projects/fakerjs/deploys/69782eece2115e00087614ef
😎 Deploy Preview https://deploy-preview-3705.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.

@atzzCokeK atzzCokeK marked this pull request as ready for review January 26, 2026 09:37
@atzzCokeK atzzCokeK requested a review from a team as a code owner January 26, 2026 09:37
@matthewmayer
Copy link
Contributor

May i just say this is a great example of a pull request!

  • Does one thing
  • Carefully explained why you made certain choices
  • Passes all tests

@codecov
Copy link

codecov bot commented Jan 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.97%. Comparing base (45ad7d8) to head (7196604).
⚠️ Report is 1 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #3705   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files        2996     3000    +4     
  Lines      236217   236293   +76     
  Branches      945      946    +1     
=======================================
+ Hits       236159   236235   +76     
  Misses         58       58           
Files with missing lines Coverage Δ
src/locales/ja/person/index.ts 100.00% <100.00%> (ø)
src/locales/ja/person/job_area.ts 100.00% <100.00%> (ø)
src/locales/ja/person/job_descriptor.ts 100.00% <100.00%> (ø)
src/locales/ja/person/job_title_pattern.ts 100.00% <100.00%> (ø)
src/locales/ja/person/job_type.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.

matthewmayer
matthewmayer previously approved these changes Jan 26, 2026
@atzzCokeK
Copy link
Contributor Author

atzzCokeK commented Jan 26, 2026

@matthewmayer Thank you so much! I’m really glad to hear that 🙏 I’ve been using this very helpful library for months, and I’ll do my best to contribute when possible.

@xDivisionByZerox xDivisionByZerox added c: feature Request for new feature c: locale Permutes locale definitions m: person Something is referring to the person module labels Jan 26, 2026
@xDivisionByZerox xDivisionByZerox added this to the v10.x milestone Jan 26, 2026
@xDivisionByZerox xDivisionByZerox added the p: 1-normal Nothing urgent label Jan 26, 2026
Copy link
Member

@xDivisionByZerox xDivisionByZerox left a comment

Choose a reason for hiding this comment

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

I have to agree with matthewmayer. This PR is a fantastic example of how locale PR should be, if you want the maintainers to review your changes quickly and not burn out while doing so.
Highly appreciated 🙌

@atzzCokeK
Copy link
Contributor Author

@xDivisionByZerox Thank you so much, I really appreciate the feedback. I’m glad it made the review process easier🐣

Shinigami92
Shinigami92 previously approved these changes Jan 26, 2026
@xDivisionByZerox xDivisionByZerox added this pull request to the merge queue Jan 26, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 26, 2026
@xDivisionByZerox xDivisionByZerox added this pull request to the merge queue Jan 26, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 26, 2026
@xDivisionByZerox
Copy link
Member

@atzzCokeK would you be so kind and update the snapshot test in your branch again, when you have time?
Sadly, these will likely result in merge conflicts when you have multiple PR that you want to get merged in succession. I apologize for the additional trouble. 🙏

@atzzCokeK
Copy link
Contributor Author

@xDivisionByZerox Sure, no problem. I will do it!🫡

Add job-related definitions for the Japanese (ja) locale:

- job_descriptor: Senior, Lead, Chief, etc. (シニア、リード、チーフ等)
- job_type: Manager, Engineer, Director, etc. (マネージャー、エンジニア等)
- job_area: Sales, Marketing, HR, etc. (営業、マーケティング、人事等)

These definitions enable faker.person.jobTitle() and related
methods to generate Japanese job titles.
Japanese doesn't use spaces between words, so the job title pattern
should be: "シニア営業マネージャー" instead of "シニア 営業 マネージャー"
@atzzCokeK
Copy link
Contributor Author

@xDivisionByZerox I've finished this. Could you review it when you have time?

@xDivisionByZerox xDivisionByZerox added this pull request to the merge queue Jan 27, 2026
Merged via the queue into faker-js:next with commit e7f3ccd Jan 27, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: feature Request for new feature c: locale Permutes locale definitions m: person Something is referring to the person module p: 1-normal Nothing urgent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants