LoginSignup
10
11

More than 5 years have passed since last update.

railsでi18nのyamlファイルを書くときはダブルクォーテーション必要ない

Last updated at Posted at 2013-07-12

ポイント2点

  • ダブルクォーテーションは必要ない
  • 複数行書くときは|-を使うといい
ja.yml
  title: Qiita [キータ]
  description_html: |-
    Qiita[キータ] は、プログラマの技術情報共有サービスです。<br />
    詳細はhttp://qiita.comを御覧ください。

ただし先頭が変数になっている場合は引用符が必要

ja.yml
  hello: '%{user}さん、こんにちは'
10
11
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
10
11