We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Locale
@maskito/kit
maskitoLocaleNumber(locale: string): MaskitoOptions {} // inside maskitoLocaleNumber const thousandSeparator = new Intl.NumberFormat(locale).format(1000).match(/\D/)[0] const decimalSeparator = new Intl.NumberFormat(locale).format(0.42).match(/\D/)[0]; return maskitoNumberOptions({decimalSeparator, thousandSeparator});
import { maskitoLocaleNumber, maskitoLocaleDate, maskitoLocaleDateRange, maskitoLocaleDateTime } from "@maskito/kit"; const numberOptions = maskitoLocaleNumber( 'de-DE', {precision: 2} // optionally override any parameter ); const dateOptions = maskitoLocaleDate('de-DE'); const dateRangeOptions = maskitoLocaleDateRange('de-DE'); const dateTimeOptions = maskitoLocaleDateTime('de-DE'); // [...]
maskitoLocale*
maskitoLocaleNumber
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Which package(s) are relevant/related to the feature request?
@maskito/kit
Description
Proposed solution
Usage
Acceptance criterias
maskitoLocale*
-utility is tested by Cypress TestmaskitoLocale*
-utility has documentation example (e.g.maskitoLocaleNumber
is put inside Number documentation page)The text was updated successfully, but these errors were encountered: