i have a question about redirecting to a page with a different language. I found this old post for drupal 7 but I doesn't really help me - https://www.drupal.org/node/1280468
Now we are in Drupal 8 and the redirect works like this:
return new RedirectResponse(\Drupal::url('<front>'))
But how can I set the language for the redirect? In my code I have the languagecode like NZ for New Zealand.