Skip to content

Instantly share code, notes, and snippets.

@iccir
Created September 19, 2015 06:20
Show Gist options
  • Save iccir/1d65c9e8d677acccd057 to your computer and use it in GitHub Desktop.
Save iccir/1d65c9e8d677acccd057 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require "json"
all_strings = [ ]
`find . -path "*en.lproj*/*.strings"`.each_line do |line|
JSON.parse(`plutil -convert json -o - \"#{line.chop}\"`).each_value do |value|
all_strings.push(value.strip)
end
end
all_strings.uniq!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment