Skip to content

Instantly share code, notes, and snippets.

View ifcwebserver's full-sized avatar

Ali Ismail ifcwebserver

View GitHub Profile
@ifcwebserver
ifcwebserver / locale_diff.rb
Last active December 29, 2015 20:49 — forked from massive/locale_diff.rb
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
# 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]