LoginSignup

(一)Trend
(二)Question
(三)Official Event
(四)Official Column
(五)Career
(六)Organization
 



62
Go to list of users who liked
62








More than 5 years have passed since last update.

@kyanny(Kensuke Nagae)

Faker  i18n locale :ja 使 Faker::Config.locale  :en 

Ruby
Posted at 

Faker  locale  Rails  default locale  :ja 便 Faker::Internet.email  email 

default locale :en 使




require 'i18n'
I18n.locale # => :en
require 'faker'
Faker::Config.locale # => :en
Faker::Internet.email # => "sanford@jacobsonjohns.com"

I18n.locale = :ja 使


Faker  locale  :ja  email  local part / domain part  (.@.com ascii )

require 'i18n'
I18n.locale # => :en
I18n.locale = :ja
I18n.locale # => :ja
require 'faker'
Faker::Config.locale # => :ja
Faker::Internet.email # => ".@.com"

i18n.locale = :ja  Faker::Config.locale = :en 




require 'i18n'
I18n.locale # => :en
I18n.locale = :ja
I18n.locale # => :ja
require 'faker'
Faker::Config.locale # => :ja
Faker::Config.locale = :en
Faker::Config.locale # => :en
Faker::Internet.email # => "ransom_blanda@auer.name"



62
Go to list of users who liked
62
0
Go to list of comments
Register as a new user and use Qiita more conveniently
(一)You get articles that match your needs
(二)You can efficiently read back useful information
(三)You can use dark theme
What you can do with signing up
Sign upLogin


62
Go to list of users who liked
62

 


How developers code is here.
© 2011-2024Qiita Inc.

Guide & Help
About
Terms
Privacy
Guideline
Design Guideline
Feedback
Help
Advertisement
Contents
Release Note
Official Event
Official Column
Advent Calendar
Qiita Award
API
Career
SNS
X(Twitter)@Qiita
X(Twitter)@qiita_milestone
X(Twitter)@qiitapoi
Facebook@Qiita
Our service
Qiita Team
Qiita Zine
Official Shop
Company
About Us
Careers
Qiita Blog