diff --git a/app/assets/stylesheets/components/_published-dates.scss b/app/assets/stylesheets/components/_published-dates.scss index 2b96a7ea2..a07ea7658 100644 --- a/app/assets/stylesheets/components/_published-dates.scss +++ b/app/assets/stylesheets/components/_published-dates.scss @@ -1,5 +1,6 @@ .app-c-published-dates { @include core-16; + direction: ltr; } .app-c-published-dates__toggle { diff --git a/app/assets/stylesheets/components/_publisher-metadata.scss b/app/assets/stylesheets/components/_publisher-metadata.scss index d18d9afc9..168167b9e 100644 --- a/app/assets/stylesheets/components/_publisher-metadata.scss +++ b/app/assets/stylesheets/components/_publisher-metadata.scss @@ -1,6 +1,7 @@ .app-c-publisher-metadata { @include responsive-bottom-margin; @include core-16; + direction: ltr; padding-top: govuk-spacing(3); } @@ -11,20 +12,6 @@ .app-c-publisher-metadata__term { float: left; padding-right: govuk-spacing(1); - - .direction-rtl & { - float: none; - display: inline-block; - padding-right: 0; - padding-left: 5px; - } -} - -.app-c-publisher-metadata__definition { - .direction-rtl & { - float: none; - display: inline-block; - } } .app-c-publisher-metadata__toggle, diff --git a/app/presenters/content_item_presenter.rb b/app/presenters/content_item_presenter.rb index e2c0e1277..d9c9fd35f 100644 --- a/app/presenters/content_item_presenter.rb +++ b/app/presenters/content_item_presenter.rb @@ -80,7 +80,7 @@ def cache_control_public? private def display_date(timestamp, format = "%-d %B %Y") - I18n.l(Time.zone.parse(timestamp), format: format) if timestamp + I18n.l(Time.zone.parse(timestamp), format: format, locale: 'en') if timestamp end def sorted_locales(translations) diff --git a/app/views/components/_published-dates.html.erb b/app/views/components/_published-dates.html.erb index 8cb40b27a..5c3328508 100644 --- a/app/views/components/_published-dates.html.erb +++ b/app/views/components/_published-dates.html.erb @@ -7,21 +7,20 @@ history_class = "app-c-published-dates--history" if history.any? %> <% if published || last_updated %> -