Synchronize locale yml files tool in Rails

Posted by Konstantinos on Stack Overflow See other posts from Stack Overflow or by Konstantinos
Published on 2009-10-03T14:59:26Z Indexed on 2010/05/17 5:20 UTC
Read the original article Hit count: 331

Filed under:
|
|

I was wondering, is it possible to synchronize with any tool or gem or w/e 2 or more yml files?

eg. i have the Greek yml file called el.yml

el:
  layout:
    home: "??????"

and the english one called en.yml

en:
  layout:
    home: "Home"
    category: "Category"

Is there any tool that based on a single yml file ie en.yml ( root ) that goes to the rest of the ymls and creates the missing translations with the default (en.yml) values?

After running such a tool i would expect to have the el.yml become likes this:

el:
  layout:
    home: "??????"
    category: "Category"

I am using a similar tool in .NET RESX Synchronizer and it does exactly that, but for resx files.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about localization