mac-cain13 / R.swift

Strong typed, autocompleted resources like images, fonts and segues in Swift projects
MIT License
9.5k stars 763 forks source link

Add support of strings with length variations #392

Open letko-dmitry opened 6 years ago

letko-dmitry commented 6 years ago

Right now strings from .stringsdict file marked as NSStringVariableWidthRuleType are not parsed at all. Please, take a look at one of the article regarding the feature: http://szulctomasz.com/2015/07/18/ios-strings-with-length-variations.html

So, it'd be nice to have function for each such string which has parameter with width value and returns localized string as result.

tomlokhorst commented 6 years ago

This is a good feature to add!

When I originally added support for the .stringsdict file, I kept it out, it to keep the scope small. Now we can add it back in. When I have time (not in the immediate future), I'll look at this.

In the mean time, pull requests are always welcome!