Supported File Types (Strings)

.YAML - Ruby on Rails (Strings)

Content is machine translated from English by Phrase Language AI.

File Extensions

.yml, .yaml

API Extension






Plural forms support


Description support


Ruby on Rails is an open-source framework designed to simplify the development of web applications using the Ruby programming language. Ruby on Rails has a built-in module for localization that uses .YAML as the standard file format (along with RB).

Prior to translation, perform a sanity check of the .YAML file ensuring it complies with all .YAML conventions, such as indentation-based data nesting.

If a file contains keys in the array format, the editor displays the translation as a string. Ensure translators do not change the syntax as there is no content validation for that key type. The key type can be changed to Array in the key settings to automatically exclude it from translation orders.

Rails i18n Guide

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)
Was this article helpful?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.