You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results in jeudi 3 février 2022, nineteen heures fifteen
Same for es-ES: ... las seven y ten de la tarde PM
I did not validate for further languages.
Solution
I'm guessing, forwarding the culture to e.g. EsTimeOnlyToClockNotationConverter so it can then forward it to ToWord would be the sensible solution, but it is an API change that I wouldn't be comfortable submitting, since it would affect potentially multiple files.
Workaround
Setting the CultureInfo.CurrentUICulture works, but it is not a desirable solution because it requires locking the string creation in multi-threaded environment, and we don't want to affect the UI culture necessarily.
The text was updated successfully, but these errors were encountered:
When using
Examples:
_ => hour.ToWords(GrammaticalGender.Feminine) + (hour > 1 ? " heures" : " heure")
$"{article} {hour} y {normalizedMinutes.ToWords()} {dayPeriod}");
etc.
This results in mixed languages.
Repro
This results in
jeudi 3 février 2022, nineteen heures fifteen
Same for
es-ES
:... las seven y ten de la tarde PM
I did not validate for further languages.
Solution
I'm guessing, forwarding the culture to e.g.
EsTimeOnlyToClockNotationConverter
so it can then forward it toToWord
would be the sensible solution, but it is an API change that I wouldn't be comfortable submitting, since it would affect potentially multiple files.Workaround
Setting the
CultureInfo.CurrentUICulture
works, but it is not a desirable solution because it requires locking the string creation in multi-threaded environment, and we don't want to affect the UI culture necessarily.The text was updated successfully, but these errors were encountered: