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

locale property in alpha validator is not validating for all Alphabet locales. #299

Open
Ushmidave opened this issue Mar 18, 2020 · 1 comment

Comments

@Ushmidave
Copy link
Contributor

Describe the bug

while localizing the validation using different types of validation locales, only greek and spanish words are validated when input formControl is been initialized with their respective language words as below:

 this.addressInfoFormGroup = this.formBuilder.group({
            danishName:['år', RxwebValidators.alpha({locale:ValidationAlphabetLocale.danish })           
            ], 
            germanName:['lächeln',RxwebValidators.alpha({locale:ValidationAlphabetLocale.german})],
            greekName:['φιλοξενία',RxwebValidators.alpha({locale:ValidationAlphabetLocale.greek})],
            russian:['Привет',RxwebValidators.alpha({locale:ValidationAlphabetLocale.russian})],
            french:['Garçon',RxwebValidators.alpha({locale:ValidationAlphabetLocale.russian})],
            spanish:['Gracías',RxwebValidators.alpha({locale:ValidationAlphabetLocale.spanish})]
        });

Expected Behavior

Localization in alpha validation should validate the following alphabet locales when its respective language word is set as value of the formControl

To Reproduce

Url (stackblitz or plunker or other)

https://stackblitz.com/edit/angular-caohzt-5eyqam?file=src/app/alpha-locale.component.ts

Package Version

@rxweb/[email protected]

@pranavirabatti
Copy link
Contributor

In the documentation we did not specify the greek locale. Please have a look here @Ushmidave

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants