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

Fix name_with_middle in Chinese locales #1567

Merged
merged 1 commit into from
Mar 11, 2019

Conversation

rockymeza
Copy link
Contributor

Hi thanks for faker! It's been helpful in our app.

Chinese names don't really have middle names. Chinese also doesn't
really use spaces. I made name_with_middle just return name and got rid
of the spaces.

I thought this was important to fix because Chinese doesn't use spaces and having/not having spaces affects word wrapping. Therefore it is important not to have spaces in Chinese.

Chinese names don't really have middle names. Chinese also doesn't
really use spaces. I made name_with_middle just return name and got rid
of the spaces.
Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

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

If Chinese doesn't really have middle names, why don't we deprecate this method and remove it in the future?

@stympy
Copy link
Contributor

stympy commented Mar 11, 2019

Why wouldn’t someone using the Chinese locales just ignore this method?

@rockymeza
Copy link
Contributor Author

rockymeza commented Mar 11, 2019 via email

@stympy
Copy link
Contributor

stympy commented Mar 11, 2019

I think the PR is fine as is. Thanks for contributing!

@stympy stympy merged commit 57c37d9 into faker-ruby:master Mar 11, 2019
michebble pushed a commit to michebble/faker that referenced this pull request Feb 16, 2020
Chinese names don't really have middle names. Chinese also doesn't
really use spaces. I made name_with_middle just return name and got rid
of the spaces.
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
Chinese names don't really have middle names. Chinese also doesn't
really use spaces. I made name_with_middle just return name and got rid
of the spaces.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants