我有一个带有一些本地化内容的 terms.en.yml 文件,例如:
en:
devise:
registrations:
terms:
text: 'This agreement was written in English (US). To the extent any translated version of this agreement conflicts with the English version, the English version controls. Please note that Section 16 contains certain changes to the general terms for users outside the United States.\n\ Some new line'
我怎样才能在那里换行或创建一个段落?
这是一些信息,但它对我没有帮助,我一直在做错事。http://yaml.org/spec/1.1/#b-paragraph-separator http://yaml.org/spec/1.1/#b-paragraph-separator
这对我有用:
en:
hello: "Hello world"
bye: |
Bye!
See you!
error: >
Something happend.
Try later.
Usage:
irb(main):001:0> I18n.t 'bye'
=> "Bye!\nSee you!\n"
irb(main):002:0> I18n.t 'error'
=> "Something happend. Try later.\n"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)