Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add language localization support for converting numbers to loc… #1359

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

fredericbahr
Copy link
Contributor

@fredericbahr fredericbahr commented Jan 9, 2025

…al string

This explicitly tells the toLocaleString function which language to use based on the provided localization instead of relying on the browser language. This allows a correct formatting of numbers within a multi language app.

This is a Proof of Concept implementation of #1331.
If you are confirm with it, i am more than happy to apply the language property to all locales and add proper documentation.

Thanks in advance, i am really looking forward for this feature

Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
material-react-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 12, 2025 4:30pm
material-react-table-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 12, 2025 4:30pm

…al string

This explicitly tells the `toLocaleString` function which language to use based on the provided localization instead of relying on the browser language. This allows a correct formatting of numbers within a multi language app.
@fredericbahr
Copy link
Contributor Author

@KevinVandy whats your opinion on this MR?

From my side it is complete and ready for your review 😄

@KevinVandy KevinVandy merged commit 2d8467d into KevinVandy:v3 Feb 14, 2025
3 of 4 checks passed
@fredericbahr fredericbahr deleted the language-flag-formatting branch February 15, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants