Skip to content

Commit

Permalink
feat: date labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanvier committed Nov 19, 2024
1 parent 3a6e345 commit 03cd259
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@wgr-sa/nuxt-form",
"description": "Form builder for Nuxt",
"version": "0.9.2",
"version": "0.9.3",
"repository": "https://github.com/WGR-SA/nuxt-form.git",
"author": "jeanvier",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/messages/validators/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export const en: {[key: string]: string} = {
minLength: 'This field must contain at least {0} characters',
maxLength: 'This field must not contain more than {0} characters',
isNotEmpty: 'This field must not be empty',
minDate: 'This field must be later than {0}',
maxDate: 'This field must be earlier than {0}',
}

export default en
2 changes: 2 additions & 0 deletions src/runtime/messages/validators/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export const fr: {[key: string]: string} = {
minLength: 'Ce champ doit contenir au moins {0} caractères',
maxLength: 'Ce champ ne doit pas contenir plus de {0} caractères',
isNotEmpty: 'Ce champ ne doit pas être vide',
minDate: 'Ce champ doit être postérieur à {0}',
maxDate: 'Ce champ doit être antérieur à {0}',
};

export default fr;

0 comments on commit 03cd259

Please sign in to comment.