public function rules(): array 	{ 		$default_language = new Language;  		$current_market = auth()->user()->user->getActiveMarket();  		$validation_rule_builder = [];  		foreach (Language::all() as $language) { 			$lang = $language->code;  			$required = ($lang === $current_market->main_language) || ($lang === $default_language->getDefaultLanguage());  			$validation_rule_builder['name.' . $lang] = [$required ? 'required' : 'nullable', 'string', 'max:50']; 			$validation_rule_builder['short_description.' . $lang] = [$required ? 'required' : 'nullable', 'string', 'max:500']; 			$validation_rule_builder['description.' . $lang] = [$required ? 'required' : 'nullable', 'string', 'max:5000']; 		}  		return MediaStorage::mergeValidationRules(array_merge($validation_rule_builder, [ 			'active' => ['boolean'], 			'image' => ['image', 'max:' . setting('max_upload_size') / 1024, new SafeWebp], 		])); 	}