Fluent.Net icon indicating copy to clipboard operation
Fluent.Net copied to clipboard

Integer 0 results in ParseException: Invalid decimal value 0.0 on Bulgarian system

Open Mailaender opened this issue 3 years ago • 0 comments

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.

Mailaender avatar Apr 22 '22 17:04 Mailaender