Print user roles in profile page.

I want to print users roles in their profile pages. There are two different potential functions for this task:
user_roles (https://api.drupal.org/api/drupal/core%21modules%21user%21user.module/fu…)
user_role_names (https://api.drupal.org/api/drupal/core!modules!user!user.module/function…)

I can print user roles directly in my user.html.twig like that:

{% for role in user.roles(TRUE) %}
  {{ role }}
{% endfor %}

However, this prints the machine names of the roles. I’d rather have the speaking names, real names or whatever they’re called.

According to the documentation, thats what user_role_names intends to do. But I can’t use it directly in my user.html.twig.
Any advice?

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/22/feed