public function rules(): array 	{ 		$rules = []; 		$langs = getCurrentLanguages();  		foreach ($langs as $lang) { 			$required = ($lang === getMainActiveLanguage()) || ($lang === getDefaultLanguage());  			$rules['specs.*' . $lang] = ['nullable', 'max:50']; 			$rules['new_specs.*' . $lang] = ['nullable', 'max:50']; 			$rules['name.' . $lang] = [$required ? 'required' : 'nullable', 'max:50']; 		}  		return array_merge($rules, [ 			'specs_id' => ['nullable', 'array'], 			'specs_id.*' => ['nullable', 'exists:specs_items,id'], 		]); 	}