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

Faker::Lorem.multibyte for multibyte chars #817

Merged
merged 6 commits into from
Jun 11, 2018

Conversation

frankywahl
Copy link
Contributor

This is to generate random characters with multibyte (often found in
different languages or signs like emojii)

This is to open discussion on adding support for multibyte. While this PR does work, it probably needs some love as to the best location for this (Ipsum?), whether it should give 1 multibyte character or multiple and wether we can make a sentence that could mix and match between multibyte and non-multibyte.

This is to generate random characters with multibyte (often found in
    different languages or signs like emojii)
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.

A couple of things:

  • you should update the documentation - doc/lorem.md
  • you should rebase with master and fix the rubocop violations

I see that you are a first-time contributor. Please check our contributing file out. There are instructions that you should read and remember in your next PRs.

@vbrazo
Copy link
Member

vbrazo commented Jun 2, 2018

@frankywahl I had free time today, rebase your branch with master and add the missing docs.

@vbrazo
Copy link
Member

vbrazo commented Jun 2, 2018

I think we could start displaying the multibytes for now and eventually we could add more functionalities as you pointed in the description.

Copy link
Contributor Author

@frankywahl frankywahl left a comment

Choose a reason for hiding this comment

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

👍 Thanks for updating this @vbrazo. I thought of the PR as a means to open the discussion, not fully fledged, but with you changes, it's now all good. Thanks!

@vbrazo
Copy link
Member

vbrazo commented Jun 9, 2018

@frankywahl it would be cool if we could add more locales to this new object and just display a multibyte sample. What do you think?

@vbrazo
Copy link
Member

vbrazo commented Jun 11, 2018

@frankywahl I had free time today and just added the option to display only a sample 👍

@vbrazo vbrazo merged commit b36b2f4 into faker-ruby:master Jun 11, 2018
@vbrazo vbrazo self-requested a review July 19, 2018 01:21
@frankywahl frankywahl deleted the multibyte branch May 7, 2019 21:14
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* Faker::Lorem.multibyte for multibyte chars

This is to generate random characters with multibyte (often found in
    different languages or signs like emojii)

* Add lorem docs and remove unnecessary locale

* Minor fix

* Add multibyte locale and display a sample
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.

2 participants