refactor(catalog): replace hardcoded validation messages with translatable strings
This commit is contained in:
@@ -92,6 +92,19 @@ return [
|
||||
'variants_required' => 'An item with attribute_codes must have variants.',
|
||||
'variants_forbidden' => 'An item without attribute_codes cannot have variants.',
|
||||
'direct_inventory_forbidden' => 'An item with variants cannot have direct inventory.',
|
||||
'event_date_attribute_required' => 'The event_date attribute is required for event date variants.',
|
||||
'multi_select_attribute_not_on_item' => 'Multi-select attributes must also be present in attribute_codes.',
|
||||
'event_date_selection_required' => 'At least one event date must be selected.',
|
||||
'single_event_date_required' => 'Exactly one event date must be selected.',
|
||||
'event_date_wrong_tenant' => 'Every event date must belong to the catalog item tenant.',
|
||||
'invalid_event_product_type' => 'The event product type is invalid.',
|
||||
'duplicate_variant_combination' => 'The variant combination must be unique.',
|
||||
'multi_value_required' => 'At least one value must be selected.',
|
||||
'single_value_required' => 'Exactly one value must be selected.',
|
||||
'selected_values_non_empty' => 'Every selected value must be a non-empty string.',
|
||||
'selected_values_distinct' => 'Selected values must be distinct.',
|
||||
'invalid_attribute_options' => 'One or more selected values are not valid attribute options.',
|
||||
'incompatible_validity_windows' => 'Selected values cannot have different validity windows.',
|
||||
],
|
||||
'menu' => [
|
||||
'schema_required' => 'The schema is required for static menus.',
|
||||
|
||||
@@ -92,6 +92,19 @@ return [
|
||||
'variants_required' => 'Un ítem con attribute_codes debe tener variantes.',
|
||||
'variants_forbidden' => 'Un ítem sin attribute_codes no puede tener variantes.',
|
||||
'direct_inventory_forbidden' => 'Un ítem con variantes no puede tener inventario directo.',
|
||||
'event_date_attribute_required' => 'El atributo event_date es obligatorio para las variantes con fecha de evento.',
|
||||
'multi_select_attribute_not_on_item' => 'Los atributos multiselección también deben estar incluidos en attribute_codes.',
|
||||
'event_date_selection_required' => 'Debe seleccionar al menos una fecha de evento.',
|
||||
'single_event_date_required' => 'Debe seleccionar exactamente una fecha de evento.',
|
||||
'event_date_wrong_tenant' => 'Todas las fechas del evento deben pertenecer al tenant del ítem de catálogo.',
|
||||
'invalid_event_product_type' => 'El tipo de producto de evento no es válido.',
|
||||
'duplicate_variant_combination' => 'La combinación de la variante debe ser única.',
|
||||
'multi_value_required' => 'Debe seleccionar al menos un valor.',
|
||||
'single_value_required' => 'Debe seleccionar exactamente un valor.',
|
||||
'selected_values_non_empty' => 'Cada valor seleccionado debe ser un texto no vacío.',
|
||||
'selected_values_distinct' => 'Los valores seleccionados no pueden repetirse.',
|
||||
'invalid_attribute_options' => 'Uno o más valores seleccionados no son opciones válidas del atributo.',
|
||||
'incompatible_validity_windows' => 'Los valores seleccionados no pueden tener ventanas de validez diferentes.',
|
||||
],
|
||||
'menu' => [
|
||||
'schema_required' => 'El schema es obligatorio para los menús estáticos.',
|
||||
|
||||
Reference in New Issue
Block a user