From 14e5d33f74bccbd92e50dcedb22cb18a16634c62 Mon Sep 17 00:00:00 2001 From: Narender Singh Date: Thu, 24 Aug 2023 19:01:52 +0530 Subject: [PATCH] add lang attribute to viewed article (#19983) --- app/views/articles/show.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/articles/show.html.erb b/app/views/articles/show.html.erb index 00e2ad373..a7b81a165 100644 --- a/app/views/articles/show.html.erb +++ b/app/views/articles/show.html.erb @@ -91,6 +91,7 @@ data-pinned-article-id="<%= @pinned_article_id %>" data-published="<%= @article.published? %>" data-scheduled="<%= @article.scheduled? %>" + <%= @article.language? ? "lang=#{@article.language}" : " " %> <%= @article.pinned? ? "data-pinned" : " " %>>
<% if @article.video.present? %> @@ -99,8 +100,8 @@ Cover image for <%= @article.title %> <% end %>