0

I have json object as below

  {
  'questions.new': 'New Question',
  'questions.other.recent': 'Recent',
  'questions.other.old': 'Old'
  }

I need to write this data to .yml file by using Ruby on Rails method. My expected file is as below

en:
  questions:
    new: 'New Question'
    other:
      recent: 'Recent'
      old: 'Old'

Can someone help me on this task, thanks so much!

huynhthinh
  • 37
  • 5

0 Answers0