samdmarshall / nslocalizer

A tool for finding missing and unused NSLocalizedStrings
BSD 3-Clause "New" or "Revised" License
156 stars 10 forks source link

take strings set via IBlocalizable into account #12

Open gregoireLem opened 5 years ago

gregoireLem commented 5 years ago

Type of issue: Request


Description:

I am using this lib : https://github.com/PiXeL16/IBLocalizable which allow localization from storyboard.

When I use nslocalizer "--find-unused" all string set via IBLocalizable in storyboard are considered as unused. Is it possible to take IBlocalizable into account ?


samdmarshall commented 5 years ago

based on how the code is written now: no, i don't believe this could be achieved. this is because nslocalizer parses the xcode project file to find the source files of a particular target within the project. the code could be changed to also include nib/xib/storyboard files, but it would be a non-trivial change in both lines-of-code and code functionality. i am not in a position to do active development on this, but if you want to contribute a PR with the changes, i would consider merging it.