nslocalizer icon indicating copy to clipboard operation
nslocalizer copied to clipboard

take strings set via IBlocalizable into account

Open gregoireLem opened this issue 6 years ago • 1 comments

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 ?


gregoireLem avatar Apr 25 '19 13:04 gregoireLem

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.

samdmarshall avatar May 03 '19 06:05 samdmarshall