-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Setting locale (FR) does not change country #208
Comments
@javix Assuming you were expecting |
OK, seeing that cities, phones were for France, I believed that setting a locale would also send the appropriate values for all the methods (country, phone, city, first_name, last_name, etc.). I didn't investigate all the generated phones numbers and cities, but I had a strong idea that all of them were French. Can you confirm that ALL the values are generated randomly, no matter which locale is set? If so, why set up a locale in this case ? Thank you. |
@javix as far as im aware it only gets overridden by whats actually in https://github.com/stympy/faker/blob/master/lib/locales/fr.yml for the French locale. Any other questions might be best posed at the gem authors, I just came in here to see if there was a pull request I could submit :) |
OK, got it, I'll close the issue as it does not seem to be a bug. Thank you. |
I tried to set up a locale as suggested:
I tried to do that in 2 different ways:
In both cases the country value was NOT correct:
etc.
The only solution I found was to set a country as follows in my Factory file:
Is it a right way ?
Any idea ?
Thank you.
Produced with faker version 1.3.0, Ruby 2.0.0, Windows XP box.
The text was updated successfully, but these errors were encountered: