Add locale ja for faker gem.
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
test
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
Rakefile
faker-locale-ja.gemspec

README.md

faker-locale-ja

Add locale ja(japanese) for faker gem.

faker gem. https://github.com/stympy/faker

Installation

Add this extension to your Gemfile:

gem "faker"
gem "faker-locale-ja"

Then run:

bundle install

Example

% rails c
Loading development environment (Rails 3.2.11)
>>Faker::Config.locale = :ja
=> :ja
>>Faker::Name.name 
=> "高橋 太一"