Ответ 1
Это действительно не вопрос I18n, как вопрос о ямле. Вы пробовали:
body : |
This is a multi-line string.
"special" metacharacters may
appear here. The extent of this string is
indicated by indentation.
Я поставил выше в test.yml и в irb:
irb(main):012:0> x= YAML.load(IO.read('test.yml'))
=> {"body"=>"This is a multi-line string.\n\"special\" metacharacters may\nappear here. The extent of this string is\nindicated by indentation.\n"}
irb(main):013:0> x["body"]
=> "This is a multi-line string.\n\"special\" metacharacters may\nappear here. The extent of this string is\nindicated by indentation.\n"
В вашем конкретном примере попробуйте:
error:
code: |
Some really
long error
message here