Bash script to search unusable localizable strings in project
- path to Localizable.strings file
- min occurrences for key - Integer
- path to search source folder
% bash key_occurrences_counter.sh /my/localizable/file/Localizable.strings 3 /my/project/folder
result_list.txt
REPORT
Unused Localizable Keys
Report start: 2022-04-21 13:56:45
Search path: /my/project/folder
"WrongCodeTitle" ---> 2
"WrongCodeMessage" ---> 2
"NetworkError" ---> 2
"ServerCommunicationError" ---> 2
"ServerCouldNotProcessTheContract" ---> 2
"SignatureError" ---> 2
"DeviceRegistrationError" ---> 2
"OldAppVersion" ---> 2
"OperatorIdInvalidError" ---> 2
Report finish: 2022-04-21 13:57:06