Skip to content

[number field] Add locale prop#1488

Merged
atomiks merged 7 commits intomui:masterfrom
atomiks:fix/number-field-locale
Mar 5, 2025
Merged

[number field] Add locale prop#1488
atomiks merged 7 commits intomui:masterfrom
atomiks:fix/number-field-locale

Conversation

@atomiks
Copy link
Contributor

@atomiks atomiks commented Feb 28, 2025

Closes #1474

@atomiks atomiks added the component: number field Changes related to the number field component. label Feb 28, 2025
@netlify
Copy link

netlify bot commented Feb 28, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit f08485b
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67c6dac91338e800081182de
😎 Deploy Preview https://deploy-preview-1488--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

let computedLocale = locale;
if (ARABIC_RE.test(formattedNumber)) {
locale = 'ar';
computedLocale = 'ar';
Copy link
Member

Choose a reason for hiding this comment

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

Do we really want to override this now that it is specified by the user?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah you're right, it should check for undefined

@atomiks atomiks merged commit 6792872 into mui:master Mar 5, 2025
22 checks passed
@atomiks atomiks deleted the fix/number-field-locale branch March 5, 2025 09:28
@oliviertassinari oliviertassinari changed the title [NumberField] Add locale prop [number ield] Add locale prop Feb 28, 2026
@oliviertassinari oliviertassinari changed the title [number ield] Add locale prop [number field] Add locale prop Feb 28, 2026
@oliviertassinari oliviertassinari added the type: new feature Expand the scope of the product to solve a new problem. label Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: number field Changes related to the number field component. type: new feature Expand the scope of the product to solve a new problem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[number field] Allow configuring locale with a prop

3 participants