]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/form-validators/video-comment-validators.ts
Implement two factor in client
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / form-validators / video-comment-validators.ts
index c56564d3454297b7b0c880cfeb294f1294478024..9e8f95e7cfdec3edb7ba9b97705e317dc30eca96 100644 (file)
@@ -4,8 +4,8 @@ import { BuildFormValidator } from './form-validator.model'
 export const VIDEO_COMMENT_TEXT_VALIDATOR: BuildFormValidator = {
   VALIDATORS: [ Validators.required, Validators.minLength(1), Validators.maxLength(3000) ],
   MESSAGES: {
-    'required': $localize`Comment is required.`,
-    'minlength': $localize`Comment must be at least 2 characters long.`,
-    'maxlength': $localize`Comment cannot be more than 3000 characters long.`
+    required: $localize`Comment is required.`,
+    minlength: $localize`Comment must be at least 2 characters long.`,
+    maxlength: $localize`Comment cannot be more than 3000 characters long.`
   }
 }