Skip to content

fix: expose locale support for isAlpha and IsAlphanumeric decorator #266

@TheNoim

Description

@TheNoim

isAlpha and isAlphanumeric are not useful in an non english country if they don't support the locals argument like validator.js does.
This package is based on validator.js, so why are locals not supported?

import { IsAlphanumeric } from 'class-validator';

export class Target {
    @IsAlphanumeric('de-DE')
    name: string;
}

This needs to be possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: fixIssues describing a broken feature.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions