<% if person.has_previous_roles? %>
  <section class="previous-roles govuk-!-padding-bottom-9" dir="<%= page_text_direction %>" lang="<%= person.locale %>">
    <%= render "govuk_publishing_components/components/heading", {
      text: t("people.previous_roles_in_government"),
      id: "previous-roles",
      margin_bottom: 2,
    } %>

    <%= render "govuk_publishing_components/components/document_list", {
      items: person.previous_roles_items
    } %>
  </section>
<% end %>

<% if person.has_previous_roles? %>
  <section class="previous-roles govuk-!-padding-bottom-9" dir="<%= page_text_direction %>" lang="<%= person.locale %>">
    <%= render "govuk_publishing_components/components/heading", {
      text: t("people.previous_roles_in_government"),
      lang: t_fallback("people.previous_roles_in_government"),
      id: "previous-roles",
      margin_bottom: 2,
    } %>

    <%= render "govuk_publishing_components/components/document_list", {
      items: person.previous_roles_items
    } %>
  </section>
<% end %>

Add lang attribute to previous roles heading
Add lang attribute to previous roles heading
