Class-validator: feat: new isLocale validator

Created on 26 Sep 2019  Â·  16Comments  Â·  Source: typestack/class-validator

I was working on a project that passed the language header to request the response in desired language. However I could not find it in the class-validator. How about making one. Can do a pr

donreleased feature

Most helpful comment

@rubiin I synced validatorjs lib to v13 (isLocale included). Thank you for help with provide this new validator.

All 16 comments

@vlapo what do u say about this

I think we have one PR about extending error messages https://github.com/typestack/class-validator/pull/238. But this is kind of advanced topic and I do not decide how to handle it, yet.

i mean do we have something to check whether a given string is a valid language like isLanguage or isLocale ? @vlapo

I checked validator.js but there is no such validator available perhaps we have to make a new one @vlapo

Looks like there is FR https://github.com/validatorjs/validator.js/issues/954 and PR https://github.com/validatorjs/validator.js/pull/1072. I would like to wait and use validatorjs function (if PR will be merged in some reasonable time).

@vlapo @rubiin mentioned PR has been merged :)

https://github.com/validatorjs/validator.js/pull/1072

@arkus7 thanks for the info. I will be doing a pr shortly

merged but not released :D

Dear @vlapo and @rubiin ,
theisLocale() function has now been released in validatorjs 13.0.0!

let md work on that

On Mon, Mar 23, 2020 at 4:35 PM Johannes Schobel notifications@github.com
wrote:

Dear @vlapo https://github.com/vlapo and @rubiin
https://github.com/rubiin ,
theisLocale() function has now been released in validatorjs 13.0.0!

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/typestack/class-validator/issues/425#issuecomment-602519348,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB6XK26KWH44GBSC2YYDYXDRI45H5ANCNFSM4I2YXEGA
.

@rubiin please also create new added validators (isEthereumAddress, isIBAN, ...)

Sure

On Wed, Mar 25, 2020, 2:40 AM Vlad Poluch notifications@github.com wrote:

@rubiin https://github.com/rubiin please also create new added
validators (isEthereumAddress, isIBAN, ...)

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/typestack/class-validator/issues/425#issuecomment-603499848,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB6XK2YTX7DPM2IBU67D5ZDRJEM4BANCNFSM4I2YXEGA
.

@rubiin please wait with this changes. I have one big PR with lot of changes almost ready.

@vlapo sure

@rubiin I synced validatorjs lib to v13 (isLocale included). Thank you for help with provide this new validator.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isergey picture isergey  Â·  3Comments

artoodeeto picture artoodeeto  Â·  3Comments

jerradpatch picture jerradpatch  Â·  5Comments

binaryangel-noa picture binaryangel-noa  Â·  3Comments

st-clair-clarke picture st-clair-clarke  Â·  3Comments