Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The format of the full Chinese name is incorrect. #580

Open
EminemJK opened this issue Dec 20, 2024 · 0 comments
Open

The format of the full Chinese name is incorrect. #580

EminemJK opened this issue Dec 20, 2024 · 0 comments

Comments

@EminemJK
Copy link

return $"{FirstName(gender)} {LastName(gender)}";

In Chinese full names, the surname comes first, followed by the given name, which is the opposite of English names. For example, the Chinese name 周杰伦 would be written as Jay Chou in English.

The issue in faker-js has been rectified:
https://github.com/faker-js/faker/blob/next/src/locales/zh_CN/person/name.ts

export default [
  { value: '{{person.lastName}}{{person.firstName}}', weight: 1 },
];
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

No branches or pull requests

1 participant