Fluent.Net
Fluent.Net copied to clipboard
Integer 0 results in ParseException: Invalid decimal value 0.0 on Bulgarian system
Fluent.Net crashes on Bulgarian Windows 11 when parsing an integer 0 with this strange exception.
System.TypeInitializationException: 'The type initializer for 'Fluent.Net.Plural.LocaleRules' threw an exception.'
Inner exception: ParseException: Invalid decimal value 0.0 at position 66
player-disconnected =
{ $team ->
[0] { $player } has disconnected.
*[other] { $player } (Team { $team }) has disconnected.
}
I assume this happens due to an US English double being parsed with Bulgarian notation where . is a thousand and , is the decimal separator.