This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script helps to compare and merge an old version of YAML local file of your target language against an up-to-date master language file, which contains new strings | |
# It still need some improvments so please do not forget to validate the YAML by pasteing it into http://yamllint.com/ | |
# Run: curl https://gist.github.com/raw/7726555/locale_diff.rb | ruby - client.en.yml client.ar.yml > new_client.ar.yml | |
require 'rubygems' | |
require 'yaml' | |
require 'pp' | |
master_local = ARGV[0] | |
my_local = ARGV[1] |