]>
Commit | Line | Data |
---|---|---|
1 | import { Validators } from '@angular/forms' | |
2 | import { BuildFormValidator } from './form-validator.model' | |
3 | ||
4 | export const VIDEO_CAPTION_LANGUAGE_VALIDATOR: BuildFormValidator = { | |
5 | VALIDATORS: [ Validators.required ], | |
6 | MESSAGES: { | |
7 | required: $localize`Video caption language is required.` | |
8 | } | |
9 | } | |
10 | ||
11 | export const VIDEO_CAPTION_FILE_VALIDATOR: BuildFormValidator = { | |
12 | VALIDATORS: [ Validators.required ], | |
13 | MESSAGES: { | |
14 | required: $localize`Video caption file is required.` | |
15 | } | |
16 | } | |
17 | ||
18 | export const VIDEO_CAPTION_FILE_CONTENT_VALIDATOR: BuildFormValidator = { | |
19 | VALIDATORS: [ Validators.required ], | |
20 | MESSAGES: { | |
21 | required: $localize`Caption content is required.` | |
22 | } | |
23 | } |