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::Name last_name and first_name not works in :ru locale #1154

Closed
nleo opened this issue Feb 24, 2018 · 3 comments
Closed

Faker::Name last_name and first_name not works in :ru locale #1154

nleo opened this issue Feb 24, 2018 · 3 comments

Comments

@nleo
Copy link

nleo commented Feb 24, 2018

Something strange. Faker not work nor console nor seeds. And I have no idea what it is.

$ rails console
Running via Spring preloader in process 16715
Loading development environment (Rails 5.2.0.rc1)
[1] pry(main)> Faker::Name.last_name
=> "\#{male_last_name}"
[2] pry(main)> I18n.locale
=> :ru
$ grep fak Gemfile.lock 
    faker (1.8.7)
@nleo
Copy link
Author

nleo commented Feb 26, 2018

[2] pry(main)> I18n.locale
=> :ru
[3] pry(main)> Faker::Name.last_name
=> "\#{female_last_name}"
[4] pry(main)> Faker::Name.name
=> "Марков Олег Леонидович"
[5] pry(main)> Faker::Name.name
=> "Михеев Игорь"
[6] pry(main)> Faker::Name.last_name
=> "\#{male_last_name}"
[7] pry(main)> Faker::Name.male_last_name
=> "Филатов"
[8] pry(main)> Faker::Name.last_name
=> "\#{female_last_name}"
[9] pry(main)> Faker::Name.female_last_name
=> "Брагина"
[10] pry(main)> I18n.locale = :en
=> :en
[11] pry(main)> Faker::Name.last_name
=> "Beahan"

@nleo nleo changed the title #{male_last_name} Faker::Name last_name and first_name not works in russian locale Feb 26, 2018
@nleo nleo changed the title Faker::Name last_name and first_name not works in russian locale Faker::Name last_name and first_name not works in :ru locale Feb 26, 2018
@vbrazo
Copy link
Member

vbrazo commented Mar 27, 2018

@nleo I think I found the solution. I already created a PR and added a couple of tests for the PR 👍 Thanks for reporting.

@vbrazo
Copy link
Member

vbrazo commented May 12, 2018

This issue is related to this PR. Merged successfully 👍

@vbrazo vbrazo closed this as completed May 12, 2018
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

2 participants