Skip to content

Commit

Permalink
Fix i18n file load issue (faker-ruby#811)
Browse files Browse the repository at this point in the history
Have i18n reinitialize to use new loadpath
  • Loading branch information
jacknoble authored and stympy committed Mar 18, 2017
1 parent a915730 commit 1f62f90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/faker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
I18n.enforce_available_locales = true
end
I18n.load_path += Dir[File.join(mydir, 'locales', '*.yml')]
I18n.reload! if I18n.backend.initialized?


module Faker
Expand Down

0 comments on commit 1f62f90

Please sign in to comment.