From bbd0d7f5d096616f5b516a3e68ec16076f838116 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 20 Apr 2017 07:09:31 -0400 Subject: [PATCH] Use default locale for html lang in layouts (#2212) --- app/views/layouts/application.html.haml | 2 +- app/views/layouts/embedded.html.haml | 2 +- app/views/layouts/error.html.haml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index fa5811fd88..f6e06f8846 100755 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -1,5 +1,5 @@ !!! 5 -%html{:lang => 'en'} +%html{:lang => I18n.locale} %head %meta{:charset => 'utf-8'}/ %meta{:name => 'viewport', :content => 'width=device-width, initial-scale=1'}/ diff --git a/app/views/layouts/embedded.html.haml b/app/views/layouts/embedded.html.haml index 562be66259..596f3c36ee 100644 --- a/app/views/layouts/embedded.html.haml +++ b/app/views/layouts/embedded.html.haml @@ -1,5 +1,5 @@ !!! 5 -%html{:lang => 'en'} +%html{:lang => I18n.locale} %head %meta{:charset => 'utf-8'}/ = stylesheet_link_tag 'application', media: 'all' diff --git a/app/views/layouts/error.html.haml b/app/views/layouts/error.html.haml index 54563f7d87..543881d7d9 100644 --- a/app/views/layouts/error.html.haml +++ b/app/views/layouts/error.html.haml @@ -1,5 +1,5 @@ !!! -%html{:lang => "en"} +%html{:lang => I18n.locale} %head %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/ %meta{:charset => "utf-8"}/