LoginSignup
1
0

More than 5 years have passed since last update.

i18nを利用した、多言語対応サイトで良くある事

Posted at

translation missing に悩まされていたら

<span class="translation_missing" title="translation missing: hogehoge">hogehoge</span>

下記を記述してリクエストスペックで解決!

module I18nMacros                                                                                                                                                                                              
  def t(*args)
    I18n.translate!(*args)
  end
end
RSpec.configure do |config|
  config.include I18nMacros
end
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0