I am trying to write a YAML dictionary for internationalization of a Rails project. I am a little confused though, as in some files I see strings in double quotes and in some without. A few points to consider:
After a brief review of the YAML cookbook cited in the question and some testing, here's my interpretation:
10but you want it to return a String and not a Fixnum, write
'\n'would be returned as the string
"\n"would be returned as a line feed character.
!ruby/symto return a Ruby symbol.
Seems to me that the best approach would be to not use quotes unless you have to, and then to use single quotes unless you specifically want to process escape codes.
"Yes" and "No" should be enclosed in quotes (single or double) or else they will be interpreted as TrueClass and FalseClass values:
en: yesno: 'yes': 'Yes' 'no': 'No'