Rails, yml and multi-line

For my life, I cannot get multi-line jail from my locale files for work.

I tried every combination of several solutions without success.

I have tried key: |, key: >with double quotes with single quotes, with \ n, the value on the next line, indented and possibly some others.

and in my opinion I just use t('key')

im tearing my hair off here. any other suggestions or possible reasons why the default yaml specifications for multi-line values ​​do not work?

+3
source share
1 answer

Due to some cheating in irb, it looks like you want:

key: |-
  abc
  def
+5
source

Source: https://habr.com/ru/post/1795416/


All Articles