How to reproduce:
- Open Windows Settings (Win + I)
- Go to "Time & language" and choose "Language & region"
- Under "Regional format", select a format that uses a comma decimal separator (for example, "German (Germany)")
- Close the Unity Editor completely if it is running
- Open the attached "IN_152714_localizer_float_issue" project
- Open the "ReproScene" Scene
- Select the "Text (TMP)" GameObject in the Hierarchy
- In the Inspector, expand the "TextMeshPro - Text (UI)" component
- Right-click the "Font Size" label and select "Localize Property"
- Observe the "Font Size" value
Actual result: The Font Size value loses its decimal component
Expected result: The Font Size retains its decimal value after the property is localized
Reproducible with: 1.5.1 (6000.0.0f1), 1.5.12 (6000.6.0f1, 6000.7.0a6)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
- If no such format appears in the list, the corresponding language pack must be installed first via "Add a language" on the same settings page
- Does not reproduce when the system regional format uses a period decimal separator, which is why the issue appears on some machines and not others