Skip to content

Commit

Permalink
Add lang attribute to withdrawal notice
Browse files Browse the repository at this point in the history
Withdrawal notices are always presented in English but sometimes
appear on a translated page. This passes en as a language value to
the notice component when that happens.
  • Loading branch information
maxgds committed Sep 15, 2020
1 parent b546602 commit 2aee254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/presenters/content_item/withdrawable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def withdrawal_notice_component
title: withdrawal_notice_title,
description_govspeak: withdrawal_notice["explanation"]&.html_safe,
time: withdrawal_notice_time,
lang: I18n.locale.to_s == "en" ? false : "en",
}
end
end
Expand Down

0 comments on commit 2aee254

Please sign in to comment.