diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-05 15:01:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 15:02:27 +0200 |
commit | e309822b93d9b69f30cbe830ef3d09dfdb2c13b2 (patch) | |
tree | 41dbc3b3108ced7fdba4062974e568695c30e486 /client/src/app/shared/forms/form-validators/video.ts | |
parent | d4d5853e65e584ca51c718f8df590b987f981047 (diff) | |
download | PeerTube-e309822b93d9b69f30cbe830ef3d09dfdb2c13b2.tar.gz PeerTube-e309822b93d9b69f30cbe830ef3d09dfdb2c13b2.tar.zst PeerTube-e309822b93d9b69f30cbe830ef3d09dfdb2c13b2.zip |
Add form validator translations
Diffstat (limited to 'client/src/app/shared/forms/form-validators/video.ts')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video.ts | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts deleted file mode 100644 index a986243df..000000000 --- a/client/src/app/shared/forms/form-validators/video.ts +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | import { Validators } from '@angular/forms' | ||
2 | |||
3 | export const VIDEO_NAME = { | ||
4 | VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(120) ], | ||
5 | MESSAGES: { | ||
6 | 'required': 'Video name is required.', | ||
7 | 'minlength': 'Video name must be at least 3 characters long.', | ||
8 | 'maxlength': 'Video name cannot be more than 120 characters long.' | ||
9 | } | ||
10 | } | ||
11 | |||
12 | export const VIDEO_PRIVACY = { | ||
13 | VALIDATORS: [ Validators.required ], | ||
14 | MESSAGES: { | ||
15 | 'required': 'Video privacy is required.' | ||
16 | } | ||
17 | } | ||
18 | |||
19 | export const VIDEO_CATEGORY = { | ||
20 | VALIDATORS: [ ], | ||
21 | MESSAGES: {} | ||
22 | } | ||
23 | |||
24 | export const VIDEO_LICENCE = { | ||
25 | VALIDATORS: [ ], | ||
26 | MESSAGES: {} | ||
27 | } | ||
28 | |||
29 | export const VIDEO_LANGUAGE = { | ||
30 | VALIDATORS: [ ], | ||
31 | MESSAGES: {} | ||
32 | } | ||
33 | |||
34 | export const VIDEO_IMAGE = { | ||
35 | VALIDATORS: [ ], | ||
36 | MESSAGES: {} | ||
37 | } | ||
38 | |||
39 | export const VIDEO_CHANNEL = { | ||
40 | VALIDATORS: [ Validators.required ], | ||
41 | MESSAGES: { | ||
42 | 'required': 'Video channel is required.' | ||
43 | } | ||
44 | } | ||
45 | |||
46 | export const VIDEO_DESCRIPTION = { | ||
47 | VALIDATORS: [ Validators.minLength(3), Validators.maxLength(10000) ], | ||
48 | MESSAGES: { | ||
49 | 'minlength': 'Video description must be at least 3 characters long.', | ||
50 | 'maxlength': 'Video description cannot be more than 10000 characters long.' | ||
51 | } | ||
52 | } | ||
53 | |||
54 | export const VIDEO_TAGS = { | ||
55 | VALIDATORS: [ Validators.minLength(2), Validators.maxLength(30) ], | ||
56 | MESSAGES: { | ||
57 | 'minlength': 'A tag should be more than 2 characters long.', | ||
58 | 'maxlength': 'A tag should be less than 30 characters long.' | ||
59 | } | ||
60 | } | ||
61 | |||
62 | export const VIDEO_SUPPORT = { | ||
63 | VALIDATORS: [ Validators.minLength(3), Validators.maxLength(500) ], | ||
64 | MESSAGES: { | ||
65 | 'minlength': 'Video support must be at least 3 characters long.', | ||
66 | 'maxlength': 'Video support cannot be more than 500 characters long.' | ||
67 | } | ||
68 | } | ||