I18n::template('error.validation.email', null, [], $kirby->languageCode());
The third parameter should be an array.