govuk_publishing_components 24.11.1 → 24.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/govuk_publishing_components/components/_attachment.html.erb +3 -3
  3. data/app/views/govuk_publishing_components/components/_attachment_link.html.erb +1 -1
  4. data/app/views/govuk_publishing_components/components/_character_count.html.erb +1 -1
  5. data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +1 -1
  6. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +16 -6
  7. data/app/views/govuk_publishing_components/components/_government_navigation.html.erb +7 -7
  8. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +3 -8
  9. data/app/views/govuk_publishing_components/components/_metadata.html.erb +6 -6
  10. data/app/views/govuk_publishing_components/components/_modal_dialogue.html.erb +1 -1
  11. data/app/views/govuk_publishing_components/components/_previous_and_next_navigation.html.erb +1 -1
  12. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +4 -4
  13. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +1 -1
  14. data/app/views/govuk_publishing_components/components/_subscription_links.html.erb +2 -2
  15. data/app/views/govuk_publishing_components/components/_success_alert.html.erb +1 -1
  16. data/app/views/govuk_publishing_components/components/_tabs.html.erb +1 -1
  17. data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +6 -6
  18. data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +5 -5
  19. data/app/views/govuk_publishing_components/components/feedback/_yes_no_banner.html.erb +6 -6
  20. data/app/views/govuk_publishing_components/components/metadata/_sentence.html.erb +2 -2
  21. data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +1 -1
  22. data/config/locales/ar.yml +30 -0
  23. data/config/locales/az.yml +30 -0
  24. data/config/locales/be.yml +30 -0
  25. data/config/locales/bg.yml +30 -0
  26. data/config/locales/bn.yml +30 -0
  27. data/config/locales/cs.yml +30 -0
  28. data/config/locales/cy.yml +30 -0
  29. data/config/locales/da.yml +30 -0
  30. data/config/locales/de.yml +30 -0
  31. data/config/locales/dr.yml +30 -0
  32. data/config/locales/el.yml +30 -0
  33. data/config/locales/en.yml +41 -8
  34. data/config/locales/es-419.yml +30 -0
  35. data/config/locales/es.yml +30 -0
  36. data/config/locales/et.yml +30 -0
  37. data/config/locales/fa.yml +30 -0
  38. data/config/locales/fi.yml +30 -0
  39. data/config/locales/fr.yml +30 -0
  40. data/config/locales/gd.yml +30 -0
  41. data/config/locales/gu.yml +30 -0
  42. data/config/locales/he.yml +30 -0
  43. data/config/locales/hi.yml +30 -0
  44. data/config/locales/hr.yml +30 -0
  45. data/config/locales/hu.yml +30 -0
  46. data/config/locales/hy.yml +30 -0
  47. data/config/locales/id.yml +30 -0
  48. data/config/locales/is.yml +30 -0
  49. data/config/locales/it.yml +30 -0
  50. data/config/locales/ja.yml +30 -0
  51. data/config/locales/ka.yml +30 -0
  52. data/config/locales/kk.yml +30 -0
  53. data/config/locales/ko.yml +30 -0
  54. data/config/locales/lt.yml +30 -0
  55. data/config/locales/lv.yml +30 -0
  56. data/config/locales/ms.yml +30 -0
  57. data/config/locales/mt.yml +30 -0
  58. data/config/locales/nl.yml +30 -0
  59. data/config/locales/no.yml +30 -0
  60. data/config/locales/pa-pk.yml +30 -0
  61. data/config/locales/pa.yml +30 -0
  62. data/config/locales/pl.yml +30 -0
  63. data/config/locales/ps.yml +30 -0
  64. data/config/locales/pt.yml +30 -0
  65. data/config/locales/ro.yml +30 -0
  66. data/config/locales/ru.yml +30 -0
  67. data/config/locales/si.yml +30 -0
  68. data/config/locales/sk.yml +30 -0
  69. data/config/locales/sl.yml +30 -0
  70. data/config/locales/so.yml +30 -0
  71. data/config/locales/sq.yml +30 -0
  72. data/config/locales/sr.yml +30 -0
  73. data/config/locales/sv.yml +30 -0
  74. data/config/locales/sw.yml +30 -0
  75. data/config/locales/ta.yml +30 -0
  76. data/config/locales/th.yml +30 -0
  77. data/config/locales/tk.yml +30 -0
  78. data/config/locales/tr.yml +30 -0
  79. data/config/locales/uk.yml +30 -0
  80. data/config/locales/ur.yml +30 -0
  81. data/config/locales/uz.yml +30 -0
  82. data/config/locales/vi.yml +30 -0
  83. data/config/locales/zh-hk.yml +30 -0
  84. data/config/locales/zh-tw.yml +30 -0
  85. data/config/locales/zh.yml +30 -0
  86. data/lib/govuk_publishing_components/version.rb +1 -1
  87. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c60eaa696257b6a3bc80e9f004c07f02b42f748ede671940f3a1222dcb1f1b89
4
- data.tar.gz: 88b4053cc90488b1e7330f52e38c321b8e9bb091b7f3db4bb5e7d3ee7c58850a
3
+ metadata.gz: 9bf26b097c1773c4126687d518e698357b3c57425cc63f3b55788ed58e211019
4
+ data.tar.gz: 8a016b8a8d05b0805600eb6770fd401e8af63a8086bc077ed1cdc9c2816a64f2
5
5
  SHA512:
6
- metadata.gz: 23dba26a8354b8375b34185c471d5b49e17e298dc9fb80cbb2438d04958660b84cbae7f680fee5305c71e032e8e952ab3ecc45a8570aed28d1e9f5333984b39c
7
- data.tar.gz: '09a94bbb2a4fb93959172c80e12284f93b08ffb61da1657276e26cd743ce4cad6531f0461a2f3f63d3c15a5a4bc6bbf91c51b9cba7ac7992163406ba8f4a4fe3'
6
+ metadata.gz: e32f62161f041f1614788acb40837ac1d535a90721de924bd1d86ce8e4abff8be1051fe10742042347fcb22982f45b35cba12e8f8eb2f3e07690cd57c5f78644
7
+ data.tar.gz: 57329b331cd9939c9f00c08b216c30b8b7ae1349ba1a2aa881ff488b14a49c795a7fcf2dc287243aa80f50159899bdfa1e9aa69677a39f3fe46cc8144ae2f91f
@@ -27,7 +27,7 @@
27
27
 
28
28
  if attachment.number_of_pages
29
29
  attributes << tag.span(
30
- pluralize(attachment.number_of_pages, "page"),
30
+ t("components.attachment.page", count: attachment.number_of_pages),
31
31
  class: "gem-c-attachment__attribute",
32
32
  )
33
33
  end
@@ -59,7 +59,7 @@
59
59
  <% end %>
60
60
 
61
61
  <% if attachment.reference.present? %>
62
- <%= tag.p "Ref: #{attachment.reference}", class: "gem-c-attachment__metadata gem-c-attachment__metadata--compact" %>
62
+ <%= tag.p t("components.attachment.reference", reference: attachment.reference), class: "gem-c-attachment__metadata gem-c-attachment__metadata--compact" %>
63
63
  <% end %>
64
64
 
65
65
  <% if attachment.unnumbered_reference.present? %>
@@ -71,7 +71,7 @@
71
71
  <% end %>
72
72
 
73
73
  <% if attachment.is_official_document && !hide_order_copy_link %>
74
- <%= tag.p link_to("Order a copy", "https://www.gov.uk/guidance/how-to-buy-printed-copies-of-official-documents", class: "govuk-link govuk-link--no-visited-state", target: "_blank"),
74
+ <%= tag.p link_to(t("components.attachment.order_a_copy"), "https://www.gov.uk/guidance/how-to-buy-printed-copies-of-official-documents", class: "govuk-link govuk-link--no-visited-state", target: "_blank"),
75
75
  class: "gem-c-attachment__metadata" %>
76
76
  <% end %>
77
77
 
@@ -24,7 +24,7 @@
24
24
 
25
25
  if attachment.number_of_pages
26
26
  attributes << tag.span(
27
- pluralize(attachment.number_of_pages, "page"),
27
+ I18n.t("components.attachment.page", count: attachment.number_of_pages),
28
28
  class: "gem-c-attachment-link__attribute",
29
29
  )
30
30
  end
@@ -18,7 +18,7 @@
18
18
  <%= render "govuk_publishing_components/components/textarea", { id: id, character_count: true }.merge(textarea.symbolize_keys) %>
19
19
 
20
20
  <span id="<%= id %>-info" class="govuk-hint govuk-character-count__message" aria-live="polite">
21
- You can enter up to <%= maxlength || maxwords %> <%= maxwords ? 'words' : 'characters' %>
21
+ <%= t("components.character_count", number: maxlength || maxwords, type: maxwords ? t("components.character_count.type.words") : t("components.character_count.type.characters")) %>
22
22
  </span>
23
23
  <% end %>
24
24
  <% end %>
@@ -18,7 +18,7 @@
18
18
  <% if navigation.content_tagged_to_other_step_by_steps? %>
19
19
  <%# Rendering step by step related items because there are a few but not too many of them %>
20
20
  <%= render 'govuk_publishing_components/components/step_by_step_nav_related', {
21
- pretitle: "Also part of",
21
+ pretitle: t("components.contextual_sidebar.pretitle"),
22
22
  links: navigation.step_nav_helper.also_part_of_step_nav,
23
23
  always_display_as_list: true
24
24
  } %>
@@ -1,7 +1,7 @@
1
1
  <%
2
2
  id ||= 'global-cookie-message'
3
- title ||= "Cookies on GOV.UK"
4
- text ||= ["We use some essential cookies to make this website work.", "We’d like to set additional cookies to understand how you use GOV.UK, remember your settings and improve government services.", "We also use cookies set by other sites to help us deliver content from their services."]
3
+ title ||= t("components.cookie_banner.title")
4
+ text ||= t("components.cookie_banner.text")
5
5
  if text.kind_of?(Array)
6
6
  newtext = ""
7
7
  text.each do |t|
@@ -14,7 +14,17 @@
14
14
  text = raw(text)
15
15
 
16
16
  cookie_preferences_href ||= "/help/cookies"
17
- confirmation_message ||= raw("You can <a class='govuk-link' href='#{cookie_preferences_href}' data-module='gem-track-click' data-track-category='cookieBanner' data-track-action='Cookie banner settings clicked from confirmation'>change your cookie settings</a> at any time.")
17
+ confirmation_message ||= raw(t("components.cookie_banner.confirmation_message",
18
+ link: link_to(
19
+ t("components.cookie_banner.confirmation_message_link"),
20
+ cookie_preferences_href,
21
+ class: "govuk-link",
22
+ data: {
23
+ module: "gem-track-click",
24
+ 'track-category': "cookieBanner",
25
+ 'track-action': "Cookie banner settings clicked from confirmation",
26
+ },
27
+ )))
18
28
  services_cookies ||= nil
19
29
  css_classes = %w(gem-c-cookie-banner govuk-clearfix)
20
30
  css_classes << "gem-c-cookie-banner--services" if services_cookies
@@ -50,7 +60,7 @@
50
60
  <div class="govuk-button-group">
51
61
  <%= render "govuk_publishing_components/components/button", {
52
62
  name: "cookies",
53
- text: "Accept additional cookies",
63
+ text: t("components.cookie_banner.buttons.accept_cookies"),
54
64
  data_attributes: {
55
65
  module: "gem-track-click",
56
66
  "accept-cookies": "true",
@@ -61,7 +71,7 @@
61
71
  } %>
62
72
  <%= render "govuk_publishing_components/components/button", {
63
73
  name: "cookies",
64
- text: "Reject additional cookies",
74
+ text: t("components.cookie_banner.buttons.reject_cookies"),
65
75
  data_attributes: {
66
76
  module: "gem-track-click",
67
77
  "reject-cookies": "true",
@@ -77,7 +87,7 @@
77
87
  <div class="gem-c-cookie-banner__confirmation govuk-width-container" tabindex="-1" hidden>
78
88
  <p class="gem-c-cookie-banner__confirmation-message" role="alert"><%= confirmation_message %></p>
79
89
  <div class="govuk-button-group">
80
- <button class="gem-c-cookie-banner__hide-button govuk-button" data-hide-cookie-banner="true" data-module="gem-track-click" data-track-category="cookieBanner" data-track-action="Hide cookie banner">Hide this message</button>
90
+ <button class="gem-c-cookie-banner__hide-button govuk-button" data-hide-cookie-banner="true" data-module="gem-track-click" data-track-category="cookieBanner" data-track-action="Hide cookie banner"><%= t("components.cookie_banner.hide") %></button>
81
91
  </div>
82
92
  </div>
83
93
  </div>
@@ -6,37 +6,37 @@
6
6
  <ul id="proposition-links">
7
7
  <li>
8
8
  <a class="<%= 'active' if active == 'departments' %>" href="/government/organisations">
9
- <%= t("components.government_navigation.departments", default: "Departments") %>
9
+ <%= t("components.government_navigation.departments") %>
10
10
  </a>
11
11
  </li>
12
12
  <li>
13
13
  <a class="<%= 'active' if active == 'worldwide' %>" href="/government/world">
14
- <%= t("components.government_navigation.worldwide", default: "Worldwide") %>
14
+ <%= t("components.government_navigation.worldwide") %>
15
15
  </a>
16
16
  </li>
17
17
  <li>
18
18
  <a class="<%= 'active' if active == 'how-government-works' %>" href="/government/how-government-works">
19
- <%= t("components.government_navigation.how-government-works", default: "How government works") %>
19
+ <%= t("components.government_navigation.how-government-works") %>
20
20
  </a>
21
21
  </li>
22
22
  <li>
23
23
  <a class="<%= 'active' if active == 'get-involved' %>" href="/government/get-involved">
24
- <%= t("components.government_navigation.get-involved", default: "Get involved") %>
24
+ <%= t("components.government_navigation.get-involved") %>
25
25
  </a>
26
26
  </li>
27
27
  <li class="clear-child">
28
28
  <a class="<%= 'active' if active == 'consultations' %>" href="<%= CGI::escapeHTML('/search/policy-papers-and-consultations?content_store_document_type[]=open_consultations&content_store_document_type[]=closed_consultations') %>">
29
- <%= t("components.government_navigation.consultations", default: "Consultations") %>
29
+ <%= t("components.government_navigation.consultations") %>
30
30
  </a>
31
31
  </li>
32
32
  <li>
33
33
  <a class="<%= 'active' if active == 'statistics' %>" href="/search/research-and-statistics">
34
- <%= t("components.government_navigation.statistics", default: "Statistics") %>
34
+ <%= t("components.government_navigation.statistics") %>
35
35
  </a>
36
36
  </li>
37
37
  <li>
38
38
  <a class="<%= 'active' if active == 'announcements' %>" href="/news-and-communications">
39
- <%= t("components.government_navigation.news_and_communications", default: "News and communications") %>
39
+ <%= t("components.government_navigation.news_and_communications") %>
40
40
  </a>
41
41
  </li>
42
42
  </ul>
@@ -59,7 +59,7 @@
59
59
  <div class="govuk-footer__meta">
60
60
  <div class="govuk-footer__meta-item govuk-footer__meta-item--grow">
61
61
  <% if meta.any? %>
62
- <h2 class="govuk-visually-hidden">Support links</h2>
62
+ <h2 class="govuk-visually-hidden"><%= t("components.layout_footer.support_links") %></h2>
63
63
  <ul class="govuk-footer__inline-list govuk-!-display-none-print">
64
64
  <% meta[:items].each do |item| %>
65
65
  <li class="govuk-footer__inline-list-item">
@@ -79,16 +79,11 @@
79
79
  />
80
80
  </svg>
81
81
  <span class="govuk-footer__licence-description">
82
- All content is available under the
83
- <a
84
- class="govuk-footer__link"
85
- href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/"
86
- rel="license"
87
- >Open Government Licence v3.0</a>, except where otherwise stated
82
+ <%= t("components.layout_footer.licence_html") %>
88
83
  </span>
89
84
  </div>
90
85
  <div class="govuk-footer__meta-item">
91
- <a class="govuk-footer__link govuk-footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/" Crown copyright</a>
86
+ <%= t("components.layout_footer.copyright_html") %>
92
87
  </div>
93
88
  </div>
94
89
  </div>
@@ -18,27 +18,27 @@
18
18
  <%= content_tag :div, class: classes, data: { module: "gem-toggle" } do %>
19
19
  <dl data-module="gem-track-click">
20
20
  <% if from.any? %>
21
- <dt class="gem-c-metadata__term"><%= t("components.metadata.from", default: "From") %>:</dt>
21
+ <dt class="gem-c-metadata__term"><%= t("components.metadata.from") %>:</dt>
22
22
  <dd class="gem-c-metadata__definition">
23
23
  <%= render 'govuk_publishing_components/components/metadata/sentence', items: from, toggle_id: "from-#{SecureRandom.hex(4)}" %>
24
24
  </dd>
25
25
  <% end %>
26
26
  <% if part_of.any? %>
27
- <dt class="gem-c-metadata__term"><%= t("components.metadata.part_of", default: "Part of") %>:</dt>
27
+ <dt class="gem-c-metadata__term"><%= t("components.metadata.part_of") %>:</dt>
28
28
  <dd class="gem-c-metadata__definition">
29
29
  <%= render 'govuk_publishing_components/components/metadata/sentence', items: part_of, toggle_id: "part-of-#{SecureRandom.hex(4)}" %>
30
30
  </dd>
31
31
  <% end %>
32
32
  <% if local_assigns.include?(:history) %>
33
- <dt class="gem-c-metadata__term"><%= t("components.metadata.history", default: "History") %>:</dt>
33
+ <dt class="gem-c-metadata__term"><%= t("components.metadata.history") %>:</dt>
34
34
  <dd class="gem-c-metadata__definition"><%= history %></dd>
35
35
  <% end %>
36
36
  <% if local_assigns.include?(:first_published) && first_published %>
37
- <dt class="gem-c-metadata__term"><%= t("components.metadata.published", default: "Published") %></dt>
37
+ <dt class="gem-c-metadata__term"><%= t("components.metadata.published") %></dt>
38
38
  <dd class="gem-c-metadata__definition"><%= first_published %></dd>
39
39
  <% end %>
40
40
  <% if local_assigns.include?(:last_updated) && last_updated %>
41
- <dt class="gem-c-metadata__term"><%= t("components.metadata.last_updated", default: "Last updated") %></dt>
41
+ <dt class="gem-c-metadata__term"><%= t("components.metadata.last_updated") %></dt>
42
42
  <dd class="gem-c-metadata__definition">
43
43
  <%= last_updated %>
44
44
  <% if local_assigns.include?(:see_updates_link) %>
@@ -46,7 +46,7 @@
46
46
  data-track-category="content-history"
47
47
  data-track-action="see-all-updates-link-clicked"
48
48
  data-track-label="history">
49
- <%= t("components.metadata.see_all_updates", default: "see all updates") %>
49
+ <%= t("components.metadata.see_all_updates") %>
50
50
  </a>
51
51
  <% end %>
52
52
  </dd>
@@ -18,6 +18,6 @@
18
18
  </svg>
19
19
  <% end %>
20
20
  <%= tag.div yield, class: "gem-c-modal-dialogue__content" %>
21
- <%= tag.button "×", class: "gem-c-modal-dialogue__close-button", aria: { label: "Close modal dialogue" } %>
21
+ <%= tag.button "×", class: "gem-c-modal-dialogue__close-button", aria: { label: t("components.modal_dialogue.close_modal") } %>
22
22
  <% end %>
23
23
  <% end %>
@@ -2,7 +2,7 @@
2
2
  <nav
3
3
  class="gem-c-pagination"
4
4
  role="navigation"
5
- aria-label="<%= t("components.previous_and_next_navigation.pagination", default: "Pagination") %>"
5
+ aria-label="<%= t("components.previous_and_next_navigation.pagination") %>"
6
6
  >
7
7
  <ul class="gem-c-pagination__list" data-module="gem-track-click">
8
8
  <% if local_assigns.include?(:previous_page) %>
@@ -22,10 +22,10 @@
22
22
  class="gem-c-step-nav js-hidden <% if small %>govuk-!-display-none-print<% end %> <% unless small %>gem-c-step-nav--large<% end %>"
23
23
  <%= "data-remember" if remember_last_step %>
24
24
  <%= "data-id=#{tracking_id}" if tracking_id %>
25
- data-show-text="<%= t("components.step_by_step_nav.show", default: "show") %>"
26
- data-hide-text="<%= t("components.step_by_step_nav.hide", default: "hide") %>"
27
- data-show-all-text="<%= t("components.step_by_step_nav.show_all", default: "Show all steps") %>"
28
- data-hide-all-text="<%= t("components.step_by_step_nav.hide_all", default: "Hide all steps") %>"
25
+ data-show-text="<%= t("components.step_by_step_nav.show") %>"
26
+ data-hide-text="<%= t("components.step_by_step_nav.hide") %>"
27
+ data-show-all-text="<%= t("components.step_by_step_nav.show_all") %>"
28
+ data-hide-all-text="<%= t("components.step_by_step_nav.hide_all") %>"
29
29
  >
30
30
  <ol class="gem-c-step-nav__steps">
31
31
  <% steps.each_with_index do |step, step_index| %>
@@ -1,6 +1,6 @@
1
1
  <%
2
2
  links ||= []
3
- pretitle ||= t("components.step_by_step_nav_related.part_of", default: "Part of")
3
+ pretitle ||= t("components.step_by_step_nav_related.part_of")
4
4
  always_display_as_list ||= false
5
5
  %>
6
6
  <% if links.any? %>
@@ -23,7 +23,7 @@
23
23
  <% if sl_helper.component_data_is_valid? %>
24
24
  <%= tag.section class: css_classes, data: data do %>
25
25
  <% unless hide_heading %>
26
- <h2 class="gem-c-subscription-links__hidden-header visuallyhidden"><%= t("components.subscription_links.subscriptions", default: "Subscriptions") %></h2>
26
+ <h2 class="gem-c-subscription-links__hidden-header visuallyhidden"><%= t("components.subscription_links.subscriptions") %></h2>
27
27
  <% end %>
28
28
  <ul
29
29
  class="gem-c-subscription-links__list<%= ' gem-c-subscription-links__list--small' if local_assigns[:small_form] == true %>"
@@ -70,7 +70,7 @@
70
70
  <div lang="en">
71
71
  <%= render "govuk_publishing_components/components/input", {
72
72
  label: {
73
- text: "Copy and paste this URL into your feed reader"
73
+ text: t("components.subscription_links.feed_link_label"),
74
74
  },
75
75
  name: "feed-reader-box",
76
76
  value: feed_link_box_value
@@ -13,7 +13,7 @@
13
13
  module: "initial-focus",
14
14
  } do %>
15
15
  <div class="govuk-notification-banner__header">
16
- <%= tag.h2 t("components.success_alert.success", default: "Success"), class: "govuk-notification-banner__title", id: title_id %>
16
+ <%= tag.h2 t("components.success_alert.success"), class: "govuk-notification-banner__title", id: title_id %>
17
17
  </div>
18
18
  <div class="govuk-notification-banner__content">
19
19
  <% if description.present? %>
@@ -8,7 +8,7 @@
8
8
  <% if tabs.count > 1 %>
9
9
  <div class="govuk-tabs gem-c-tabs" data-module="govuk-tabs">
10
10
  <h2 class="govuk-tabs__title">
11
- Contents
11
+ <%= t("components.tabs.contents") %>
12
12
  </h2>
13
13
  <ul class="govuk-tabs__list">
14
14
  <% tabs.each do |tab| %>
@@ -10,7 +10,7 @@
10
10
  data-track-action="GOV.UK Close Form"
11
11
  aria-controls="something-is-wrong"
12
12
  aria-expanded="true">
13
- <%= t("components.feedback.close", default: "Close") %>
13
+ <%= t("components.feedback.close") %>
14
14
  </button>
15
15
 
16
16
  <div class="govuk-grid-row">
@@ -19,12 +19,12 @@
19
19
 
20
20
  <input type="hidden" name="url" value="<%= url_without_pii %>">
21
21
 
22
- <h3 class="gem-c-feedback__form-heading"><%= t("components.feedback.help_us_improve_govuk", default: "Help us improve GOV.UK") %></h3>
23
- <p id="feedback_explanation" class="gem-c-feedback__form-paragraph"><%= t("components.feedback.dont_include_personal_info", default: "Don’t include personal or financial information like your National Insurance number or credit card details.") %></p>
22
+ <h3 class="gem-c-feedback__form-heading"><%= t("components.feedback.help_us_improve_govuk") %></h3>
23
+ <p id="feedback_explanation" class="gem-c-feedback__form-paragraph"><%= t("components.feedback.dont_include_personal_info") %></p>
24
24
 
25
25
  <%= render "govuk_publishing_components/components/input", {
26
26
  label: {
27
- text: t("components.feedback.what_doing", default: "What were you doing?")
27
+ text: t("components.feedback.what_doing")
28
28
  },
29
29
  name: "what_doing",
30
30
  describedby: "feedback_explanation"
@@ -32,13 +32,13 @@
32
32
 
33
33
  <%= render "govuk_publishing_components/components/input", {
34
34
  label: {
35
- text: t("components.feedback.what_wrong", default: "What went wrong?")
35
+ text: t("components.feedback.what_wrong")
36
36
  },
37
37
  name: "what_wrong"
38
38
  } %>
39
39
 
40
40
  <%= render "govuk_publishing_components/components/button", {
41
- text: t("components.feedback.send", default: "Send")
41
+ text: t("components.feedback.send")
42
42
  } %>
43
43
  </div>
44
44
  </div>
@@ -10,7 +10,7 @@
10
10
  data-track-action="ffFormClose"
11
11
  aria-controls="page-is-not-useful"
12
12
  aria-expanded="true">
13
- <%= t("components.feedback.close", default: "Close") %>
13
+ <%= t("components.feedback.close") %>
14
14
  </button>
15
15
 
16
16
  <div class="govuk-grid-row">
@@ -20,12 +20,12 @@
20
20
  <input name="email_survey_signup[survey_id]" type="hidden" value="footer_satisfaction_survey">
21
21
  <input name="email_survey_signup[survey_source]" type="hidden" value="<%= path_without_pii %>">
22
22
 
23
- <h3 class="gem-c-feedback__form-heading"><%= t("components.feedback.help_us_improve_govuk", default: "Help us improve GOV.UK") %></h3>
24
- <p id="survey_explanation" class="gem-c-feedback__form-paragraph"><%= t("components.feedback.more_about_visit", default: "To help us improve GOV.UK, we’d like to know more about your visit today. We’ll send you a link to a feedback form. It will take only 2 minutes to fill in. Don’t worry we won’t send you spam or share your email address with anyone.") %></p>
23
+ <h3 class="gem-c-feedback__form-heading"><%= t("components.feedback.help_us_improve_govuk") %></h3>
24
+ <p id="survey_explanation" class="gem-c-feedback__form-paragraph"><%= t("components.feedback.more_about_visit") %></p>
25
25
 
26
26
  <%= render "govuk_publishing_components/components/input", {
27
27
  label: {
28
- text: t("components.feedback.email_address", default: "Email address")
28
+ text: t("components.feedback.email_address")
29
29
  },
30
30
  name: "email_survey_signup[email_address]",
31
31
  type: "email",
@@ -34,7 +34,7 @@
34
34
  } %>
35
35
 
36
36
  <%= render "govuk_publishing_components/components/button", {
37
- text: t("components.feedback.send_me_survey", default: "Send me the survey"),
37
+ text: t("components.feedback.send_me_survey"),
38
38
  } %>
39
39
  </div>
40
40
  </div>
@@ -4,31 +4,31 @@
4
4
 
5
5
  <div class="gem-c-feedback__prompt gem-c-feedback__js-show js-prompt" tabindex="-1">
6
6
  <div class="gem-c-feedback__prompt-questions js-prompt-questions">
7
- <h2 class="gem-c-feedback__prompt-question"><%= t("components.feedback.is_this_page_useful", default: "Is this page useful?") %></h2>
7
+ <h2 class="gem-c-feedback__prompt-question"><%= t("components.feedback.is_this_page_useful") %></h2>
8
8
  <!-- Maybe button exists only to try and capture clicks by bots -->
9
9
  <button data-track-category="yesNoFeedbackForm" data-track-action="ffMaybeClick" aria-expanded="false" style="display: none" hidden="hidden" aria-hidden="true">
10
- <%= t("components.feedback.maybe", default: "Maybe") %>
10
+ <%= t("components.feedback.maybe") %>
11
11
  </button>
12
12
 
13
13
  <ul class="gem-c-feedback__option-list">
14
14
  <li class="gem-c-feedback__option-list-item">
15
15
  <button class="govuk-button gem-c-feedback__prompt-link js-page-is-useful" data-track-category="yesNoFeedbackForm" data-track-action="ffYesClick">
16
- <%= t("components.feedback.yes", default: "Yes") %> <span class="govuk-visually-hidden"><%= t("components.feedback.is_useful", default: "this page is useful") %></span>
16
+ <%= t("components.feedback.yes") %> <span class="govuk-visually-hidden"><%= t("components.feedback.is_useful") %></span>
17
17
  </button>
18
18
  </li>
19
19
  <li class="gem-c-feedback__option-list-item">
20
20
  <button class="govuk-button gem-c-feedback__prompt-link js-toggle-form js-page-is-not-useful" data-track-category="yesNoFeedbackForm" data-track-action="ffNoClick" aria-controls="page-is-not-useful" aria-expanded="false">
21
- <%= t("components.feedback.no", default: "No") %> <span class="govuk-visually-hidden"><%= t("components.feedback.is_not_useful", default: "this page is not useful") %></span>
21
+ <%= t("components.feedback.no") %> <span class="govuk-visually-hidden"><%= t("components.feedback.is_not_useful") %></span>
22
22
  </button>
23
23
  </li>
24
24
  </ul>
25
25
  </div>
26
26
  <div class="gem-c-feedback__prompt-questions gem-c-feedback__prompt-success js-prompt-success js-hidden" role="alert">
27
- <%= t("components.feedback.thank_you_for_feedback", default: "Thank you for your feedback") %>
27
+ <%= t("components.feedback.thank_you_for_feedback") %>
28
28
  </div>
29
29
  <div class="gem-c-feedback__prompt-questions gem-c-feedback__prompt-questions--something-is-wrong js-prompt-questions">
30
30
  <button class="govuk-button gem-c-feedback__prompt-link js-toggle-form js-something-is-wrong" data-track-category="Onsite Feedback" data-track-action="GOV-UK Open Form" aria-controls="something-is-wrong" aria-expanded="false">
31
- <%= t("components.feedback.something_wrong", default: "Report a problem with this page") %>
31
+ <%= t("components.feedback.something_wrong") %>
32
32
  </button>
33
33
  </div>
34
34
  </div>
@@ -13,8 +13,8 @@
13
13
  class="gem-c-metadata__definition-link govuk-!-display-none-print"
14
14
  data-controls="toggle-<%= toggle_id %>"
15
15
  data-expanded="false"
16
- data-toggled-text="<%= t("components.metadata.toggle_less", default: "Show fewer") %>">
17
- <%= t("components.metadata.toggle_more", number: remaining.length, default: "+ #{remaining.length} more") %>
16
+ data-toggled-text="<%= t("components.metadata.toggle_less") %>">
17
+ <%= t("components.metadata.toggle_more", number: remaining.length) %>
18
18
  </a>
19
19
  </div>
20
20
  <span id="toggle-<%= toggle_id %>" class="gem-c-metadata__toggle-items js-hidden"><%= remaining.to_sentence.html_safe %></span>