-
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
Added Gender for ToOrdinalWords (needed for Brazilian Portuguese) #196
Conversation
Added pt-br localisation gender for number to words. Added pt-br localisation for ordinal words, with gender.
I also moved the OrdinalTests from English to |
Is it safe to review/merge this now? :p |
Yes. Just updated the readme, I believe it is all set now. |
@@ -436,6 +436,16 @@ This is kind of mixing `ToWords` with `Ordinalize`. You can call `ToOrdinalWords | |||
121.ToOrdinalWords() => "hundred and twenty first" | |||
``` | |||
|
|||
`ToOrdinalWords` also supports `GrammaticalGender`, you can pass a second argument to `ToOrdinalWords` to specify which gender the number should be outputted in. The possible values are `GrammaticalGender.Masculine`, `GrammaticalGender.Feminine` and `GrammaticalGender.Neuter`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for updating the readme :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also explain that this is applicable to some culture only.
Updated readme explaining Gender for Ordinal is optional and added an example of pt-br Neutral gender. |
Merged now. I made a few small changes to the converter and the readme. I would appreciate your review. |
This was a great clean PR. Thanks for the great work :) |
This is now published to NuGet as v1.21.1. Thanks. |
Added pt-br localisation gender for number to words.
Added pt-br localisation for ordinal words, with gender.