Ruby on Rails YAML

YAML file format for use with Ruby on Rails applications.

File Extensions .yml, .yaml
API Extension yml
Format Options No
Import Yes
Export Yes
Pluralization supported? Yes
Descriptions/Comments supported? No

Example

---
en:
  app_title: My Software Project
  greeting: |-
    Hello 'User'!
    How are you doing today?
  my_collection:
  - first
  - second
  new_messages:
    one: You have a new message
    other: You have %{count} new messages
    zero: You have no new messages

Further Reading

  • phrase Gem
  • Rails i18n Guide