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

[Feature Request] v-number-input: Using the locale decimal separator #20254

Open
PaulCombal opened this issue Jul 30, 2024 · 1 comment
Open
Assignees
Labels
C: VNumberInput T: enhancement Functionality that enhances existing features

Comments

@PaulCombal
Copy link

Problem to solve

I want to let the users input a decimal value in a v-number-input.
It is possible to do so using the dot: 3.8
In many other languages, the comma is used as a decimal separator: 3,8
It is possible to type numbers this way in a native <input type="number" />, but not using this component.

Proposed solution

None, but I wish the behavior of v-text-input were the same as the native input tag on this regard.

@yuwu9145 yuwu9145 self-assigned this Aug 1, 2024
@jakubmatisak
Copy link

I have exactly same problem. In "slovak" locale (and many more) is "," default separator.
But we have multilanguage application, so in english we would like to use different standard - "." (it's somethng similiar to date-input locale change when changing date from 7/11/2024 to 11.07.2024.)

@yuwu9145, please - will this feature work manually based on prop, or automatically based on locale? or both?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VNumberInput T: enhancement Functionality that enhances existing features
Projects
None yet
Development

No branches or pull requests

4 participants