1. Help Center
  2. Supported formats

Ruby on Rails YAML

Learn how to manage Ruby on Rails YAML format in Phrase.

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

Code Sample

  boolean_key: true
  empty_string_translation: ''
  key_with_description: Check it out! This key has a description! (At least in some
  key_with_line-break: |-
    This translations contains
    a line-break.
      key: Wow, this key is nested even deeper.
    key: This key is nested inside a namespace.
    one: Only one pluralization found.
    other: Wow, you have %s pluralizations!
    zero: You have no pluralization.
  - first item
  - second item
  - third item
  simple_key: Just a simple key with a simple message.
  unverified_key: This translation is not yet verified and waits for it. (In some
    formats we also export this status)

Learn More


How does Phrase handle arrays included in YAML files?

If your file contains keys in the array format, the Translation Editor will display the translation as a string. There is no content validation for keys of that type, so please make sure that translators do not change the syntax. You can change the type of that key to Array in the key settings to automatically exclude it from translation orders.