kevingosse / GummyCat

MIT License
162 stars 10 forks source link

Culture sensitive issue #12

Closed latop2604 closed 9 months ago

latop2604 commented 9 months ago

Hello, using a french culture, the app does not work. It stay blank after attaching a process.

The issue is in Region.axaml.cs. TransformOperations.Parse($"scaleX({Width * GetFillFactor(segment)})") fail because the interpolated string is generated as scaleX(6,555) instead of scaleX(6.555).

I was able to fix the issue using FormattableString.Invariant like this

TransformOperations.Parse(FormattableString.Invariant($"scaleX({Width * GetFillFactor(segment)})")));

It also work using <UseSystemResourceKeys>true</UseSystemResourceKeys> in csproj

kevingosse commented 9 months ago

Good catch. I added <InvariantGlobalization>true</InvariantGlobalization> in the csproj, I believe this should fix your issue.