-
Notifications
You must be signed in to change notification settings - Fork 966
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
Add overload for specifying the culture for Ordinalize() extension method #593
Comments
Hello, Indeed, it could be nice. Would you submit a PR for this? |
Cool, I just had a look. Though, I was wondering about how to add it. Although, I only need a new extension method to specify the Shall I only add a new one: I can also add |
I've got some preliminary work. How does that look? |
So, if I understand you correctly, you might want to go the route of adding BTW Roslyn follows this mechanism for adding new optional arguments to methods. Maybe, that might work here, as well. |
so the consumer can override the requested culture. This fixes Humanizr#593. See the discussion there for details.
so the consumer can override the requested culture. This fixes Humanizr#593. See the discussion there for details.
Happy to take a PR adding a |
I think I closed the PR back then because of inactivity on it. I've reopened it, and rebased changes on latest master. This is only the change I did for the overload I needed back then, but I intent to add the other ones, when I see the CI pass on my original changes. |
so the consumer can override the requested culture. This fixes Humanizr#593. See the discussion there for details.
Most extension methods have support for overriding the culture, however
Ordinalize()
doesn't have that. For example,ToOrdinalWords()
gives you the opportunity to specify it, like this:It would be nice if you have that overload for
Ordinalize()
as well.The text was updated successfully, but these errors were encountered: