Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sync between locale files

I have two languages yml files like en.yml and es.yml. Whenever i add some keys to en.yml i don't want to manually copy the strings from en.yml to es.yml. Is there any plugin which does this job or any rake command to do that ?

For example

en:
  key1: "Message1"
  key2: "Message2"

es:
  key1: "Message1"

When i run some job key2 must be attached to es.yml

like image 660
user315252 Avatar asked Aug 01 '26 22:08

user315252


1 Answers

I just released a rails plugin, only tested on Rails 3 which helps you to keep locale files in sync providing 2 simple rake tasks.

It's available on github at https://github.com/eserra/localizator

Install with:

$ rails plugin install git://github.com/eserra/localizator.git

Since it's my first Rails plugin any feedback would be appreciated!

Hope it helps.

like image 164
Startup Kid Avatar answered Aug 04 '26 10:08

Startup Kid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!