Skip to content

Conversation

priscilawebdev
Copy link
Member

Problem
Some users in certain locales (like Austria) had trouble entering target sample rates in Firefox. The problem happens because toLocaleString() formats numbers using local rules (like "1.000,25" instead of "1000.25"), but parsePercent() uses parseFloat(), which can’t handle these local number formats.

Solution
Replaced .toLocaleString() with .toString() in organizationSampling.tsx when setting up the form. This keeps the number format consistent so it can be parsed correctly and matches how the rest of the project handles sampling numbers.

closes https://linear.app/getsentry/issue/TET-1001/localization-issue-with-number-formatting-in-firefox-affecting-ds

Copy link

linear bot commented Sep 1, 2025

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Sep 1, 2025
@priscilawebdev priscilawebdev marked this pull request as ready for review September 1, 2025 12:59
@priscilawebdev priscilawebdev requested a review from a team as a code owner September 1, 2025 12:59
Copy link
Member

@shellmayr shellmayr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good 🚀 let's make sure this actually fixes the issue in a reproduction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants