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

Adds a fix for when :en is not one of the available locales #1785

Merged
merged 1 commit into from Jun 11, 2020

Conversation

jaimerodas
Copy link
Contributor

Issue# 266

Fixes #266

Description:

As described in the issue, whenever :en wasn't a part of your I18n.available_locales, a few things could break. This was because of I18n defaulting to :en, as you can see here. This is the smallest change I could make that didn't break any other tests. Of course, I also added a new test checking this behavior.

@Zeragamba Zeragamba merged commit f4bb187 into faker-ruby:master Jun 11, 2020
@Zeragamba
Copy link
Contributor

Thanks!

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.

Faker::Address.country does not work if your apps does not use :en as a locale
3 participants