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

@priscilawebdev priscilawebdev merged commit b43994b into master Sep 18, 2025
45 checks passed
@priscilawebdev priscilawebdev deleted the priscila/fix/dynamic-sampling/issue-with-system-locale branch September 18, 2025 09:59
@priscilawebdev priscilawebdev added the Trigger: Revert Add to a merged PR to revert it (skips CI) label Sep 18, 2025
@getsentry-bot
Copy link
Contributor

PR reverted: 7f198c1

getsentry-bot added a commit that referenced this pull request Sep 18, 2025
@priscilawebdev
Copy link
Member Author

unfortunately the problem persists for @Dav1dde , we will have to add a few logs

@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Trigger: Revert Add to a merged PR to revert it (skips CI)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants