Ruby on Rails uses the psych gem to parse YAML locale files, which automatically converts values like Yes/No, On/Off, true/false into boolean types according to YAML 1.1 specification. This behavior can cause unexpected issues when these words are intended as literal translation strings. The psych gem treats Y/y and N/n as literal strings rather than booleans, a decision inherited from the older syck parser to maintain backward compatibility.
Table of contents
Permalink Processing YES, yes, NO, no, on, ON, off, OFF …Permalink Why Psych does not convert Y, y, N, n to booleans?Sort: