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

Localisation "ToWords" pt-PT for European portuguese no longer available #1296

Open
TMK1912 opened this issue Sep 27, 2023 · 1 comment
Open

Comments

@TMK1912
Copy link

TMK1912 commented Sep 27, 2023

Hi. I have been using the Humanizer package to convert numbers into words in portuguese language. I am currently using the latest version which is the 2.14.1 version. I am calling the method ToWords as follows:
string text = number.ToWords(new CultureInfo("pt-PT")); whereby "number" is an integer.
However the output "text" is given in brazilian portuguese instead of european portuguese. I have looked into the older issues that were raised here and i saw that at some point there was a version for portuguese language that was available. It has been replaced with the brazilian portuguese one. Is there a way to get the european portuguese version back for the NumberToWordsConverterRegistry? Thanks

@ogix
Copy link
Contributor

ogix commented Nov 19, 2023

Have you tried providing new CultureInfo("pt") ? It is registered with this locale.

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

No branches or pull requests

2 participants