Created
September 19, 2015 06:20
-
-
Save iccir/1d65c9e8d677acccd057 to your computer and use it in GitHub Desktop.
This file contains 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
#!/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