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: Language support #789

Closed
aurelien-robineau opened this issue Oct 21, 2020 · 2 comments
Closed

feature: Language support #789

aurelien-robineau opened this issue Oct 21, 2020 · 2 comments
Labels
status: duplicate Issue is being tracked already in another issue.

Comments

@aurelien-robineau
Copy link

Description

class-validator is usefull but errors are only in english (or have I missed something ?) It is quite inconvenient to manually enter messages when it could be automatic.

Proposed solution

This could be done in the ValidatorOptions interface via a locale property.

export interface ValidatorOptions {
    locale: 'fr',
}

Or in the decorators options.

@Max(10, { locale: 'fr' })
@Kiliandeca Kiliandeca added the status: duplicate Issue is being tracked already in another issue. label Oct 31, 2020
@Kiliandeca
Copy link
Contributor

Hi, it's a duplicate of #169

@github-actions
Copy link

github-actions bot commented Dec 1, 2020

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: duplicate Issue is being tracked already in another issue.
Development

No branches or pull requests

2 participants