<!DOCTYPE html>
  <html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, shrink-to-fit=no"
    >
    <meta name="description" content="<%= page_description %>">
    <title><%= page_title %></title>
    <% if content_for?(:preferred_path) %>
      <link rel="canonical" href="<%= preferred_url %>">
    <% end %>
    <%= stylesheet_link_tag "main" %>
    <%= stylesheet_link_tag(
      "https://cloud.typenetwork.com/projects/2107/fontface.css/"
    ) %>
  </head>
  <body>
    <div class="c-site-frame">
      <div class="c-site-frame__nav">
        <%= partial "partials/site_nav" %>
      </div>

      <main class="c-site-frame__body" role="main">
        <%= yield %>
      </main>

      <div class="c-site-frame__footer">
        <%= partial "partials/site_footer" %>
      </div>
    </div>

    <%= partial "partials/javascript" %>
    <%= partial "partials/analytics" %>
  </body>
</html>

<!DOCTYPE html>
<html lang="<%= I18n.locale %>">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, shrink-to-fit=no"
    >
    <meta name="description" content="<%= page_description %>">
    <title><%= page_title %></title>
    <% if content_for?(:preferred_path) %>
      <link rel="canonical" href="<%= preferred_url %>">
    <% end %>
    <%= stylesheet_link_tag "main" %>
    <%= stylesheet_link_tag(
      "https://cloud.typenetwork.com/projects/2107/fontface.css/"
    ) %>
  </head>
  <body>
    <div class="c-site-frame">
      <div class="c-site-frame__nav">
        <%= partial "partials/site_nav" %>
      </div>

      <main class="c-site-frame__body" role="main">
        <%= yield %>
      </main>

      <div class="c-site-frame__footer">
        <%= partial "partials/site_footer" %>
      </div>
    </div>

    <%= partial "partials/javascript" %>
    <%= partial "partials/analytics" %>
  </body>
</html>

Set lang attribute through i18n module
Set lang attribute through i18n module
