Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added -[NSString toQuantity:] #3

Closed
wants to merge 1 commit into from

Conversation

mickmaccallum
Copy link

Added an additional instance method to the category to return a NSString representing the it's quantity parameter, with the correct pluralization of the receiver appended to it.

e.x.

NSLog(@"%@", [@"thread" toQuantity:0]); // 0 threads
NSLog(@"%@", [@"thread" toQuantity:1]); // 1 thread
NSLog(@"%@", [@"thread" toQuantity:2]); // 2 threads

@mattt
Copy link
Owner

mattt commented Dec 4, 2020

@0x7fs Thanks for submitting this PR, and apologies for not responding sooner. I think this can be useful for English-only locales, but I'd be concerned about misuse for apps localizing to languages that have other plural forms.

@mattt mattt closed this Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants