code: public function validate($value, Constraint $constraint)
      {
          if (!$value instanceof Translatable) {
              throw new LogicException('Value is not translatable while trying to validate translations.');
          }
  
          $locales = [];
  
          foreach ($value->getTranslations() as $translation) {
              $locales[] = $translation->getLocale();
          }
  
  //        $this->context
  //            ->buildViolation($constraint->getMessage())
  //            ->atPath('')
  //            ->addViolation();
      }
docs: Validate value
  
  @param mixed $value
  @param \Symfony\Component\Validator\Constraint $constraint