Skip to Content

Rails - Store hash in i18n

Posted on

Today, I learn how to store a hash in YAML file(like en.yml in rails).

To do that, you need to put key, value in en.yml file like this:

feeds:
  -
    image: 'image1'
    link: '/'
  -
    image: 'image2'
    link: '/search'
comments powered by Disqus