public function validate(string $attribute, mixed $value, Closure $fail): void 	{ 		if (!($this->model instanceof HasTranslations)) { 			$fail('validation.custom.translated-instance')->translate(['attribute' => $attribute]);  			return; 		}  		$builder = $this->model::class::hasTranslatedField($this->fieldName ?? $attribute, $value) 			->when($this->model->getKey(), function (Builder $query): void { 				$query->where($this->model->getKeyName(), '<>', $this->model->getKey()); 			});  		if ($builder->exists()) { 			$fail('validation.unique')->translate(['attribute' => $attribute]); 		} 	}