24 lines
666 B
TypeScript
24 lines
666 B
TypeScript
import { Validators } from '@angular/forms'
|
|
import { BuildFormValidator } from './form-validator.model'
|
|
|
|
export const VIDEO_CAPTION_LANGUAGE_VALIDATOR: BuildFormValidator = {
|
|
VALIDATORS: [ Validators.required ],
|
|
MESSAGES: {
|
|
required: $localize`Video caption language is required.`
|
|
}
|
|
}
|
|
|
|
export const VIDEO_CAPTION_FILE_VALIDATOR: BuildFormValidator = {
|
|
VALIDATORS: [ Validators.required ],
|
|
MESSAGES: {
|
|
required: $localize`Video caption file is required.`
|
|
}
|
|
}
|
|
|
|
export const VIDEO_CAPTION_FILE_CONTENT_VALIDATOR: BuildFormValidator = {
|
|
VALIDATORS: [ Validators.required ],
|
|
MESSAGES: {
|
|
required: $localize`Caption content is required.`
|
|
}
|
|
}
|