File description

YAML is a human-readable data-serialization language for all programming languages, commonly used for configuration files. It targets many of the same communications applications as XML but has a minimal syntax.

Good to know

For YAML files, we import the keys as terms, and the path of the keys in the Context field (each key in the path also wrapped in quotes).

Documentation

The official YAML website: https://yaml.org/
Ruby on Rails internationalization guide https://guides.rubyonrails.org/i18n.html

Sample file

View Download
en:
  app:
    name: TODO List
    login:
      text: Enter your credentials below to login
      message:
        success: "Login successful!\nWelcome back %s!"
        error: Make sure you've entered the correct username and password
      password:
        forget: I forgot my password
        reset: Enter your address in the field below. A new password will be sent to your inbox.
      user: Username
      pass: Password
    register:
      text: Sign up for free! No credit card required!
      message:
        success: "Thank you for signing up !\nPlease check your email address to activate your account."
        error: "We were unable to sign you up.\nPlease correct the marked fields."
    menu:
      terms: Terms and conditions

See also: