Using this code inside my validation.php, I was able to translate the translate the values of the edit_type-field:
'values' => [
'edit_type' => [
'1' => 'Intern',
'2' => 'Kunde'
],
'every_day' => [
'true' => 'ausgewählt',
'false' => 'nicht ausgewählt'
]
],
But for some reason, the same logic does not work for the every_day field. I assume it has something to do with the values being booleans.
This is usually used with required_if inside the validation, in the case of every_day I use required_unless which should not make a difference.
Any idea how I can accomplish this?