Skip to content

Commit

Permalink
Merge pull request #2086 from alphagov/i18n
Browse files Browse the repository at this point in the history
Remove unused i18n keys
  • Loading branch information
ChrisBAshton authored Apr 27, 2021
2 parents 074dd1a + f7f543d commit f534c13
Show file tree
Hide file tree
Showing 68 changed files with 9 additions and 454 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ end
group :test do
gem "capybara"
gem "faker"
gem "i18n-coverage"
gem "minitest-reporters"
gem "mocha"
gem "simplecov"
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ GEM
domain_name (~> 0.5)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
i18n-coverage (0.2.0)
image_size (2.1.0)
io-like (0.3.1)
jasmine (3.6.0)
Expand Down Expand Up @@ -382,6 +383,7 @@ DEPENDENCIES
govuk_schemas
govuk_test
htmlentities
i18n-coverage
jasmine
jasmine_selenium_runner
minitest-reporters
Expand Down
4 changes: 2 additions & 2 deletions app/views/components/_published-dates.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<% if published || last_updated %>
<div class="app-c-published-dates <%= history_class %>" <% if history.any? %>id="history" data-module="gem-toggle"<% end %> lang="en">
<% if published %>
Published <%= published %>
<%= t('components.published_dates.published', date: published) %>
<% end %>
<% if last_updated %>
<% if published %><br /><% end %>Last updated <%= last_updated %>
<% if published %><br /><% end %><%= t('components.published_dates.last_updated', date: last_updated) %>
<% if link_to_history && history.empty? %>
&mdash; <a href="#history" class="app-c-published-dates__history-link govuk-link"><%= t('components.published_dates.see_all_updates', locale: :en) %></a>
<% elsif history.any? %>
Expand Down
13 changes: 0 additions & 13 deletions config/locales/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,8 @@ ar:
components:
share_links:
share_this_page: "شارك هذه الصفحة"
related_navigation:
collections: "مجموعات"
external_links: "روابط خارجية"
policies: "سياسيات"
related_content: "محتوى ذو صلة"
topical_events: "أحداث ذات صلة بالموضوع"
topics: "المواضيع"
world_locations: "العالم"
published_dates:
published: "تاريخ النشر %{date}"
publisher_metadata:
from: "من"
content_item:
schema_name:
announcement:
Expand Down Expand Up @@ -345,9 +335,6 @@ ar:
published: "نشر"
updated: "تحديث"
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
zero:
Expand Down
3 changes: 0 additions & 3 deletions config/locales/az.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ az:
published: dərc olunub
updated: yenilənib
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
other:
Expand Down
3 changes: 0 additions & 3 deletions config/locales/be.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,6 @@ be:
published: "Апублікаваны"
updated: "Адноўлена"
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
one: "Дакумент"
Expand Down
3 changes: 0 additions & 3 deletions config/locales/bg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ bg:
published: "Публикувано"
updated: "обновено"
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
one: "Документ"
Expand Down
3 changes: 0 additions & 3 deletions config/locales/bn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ bn:
published:
updated:
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
one:
Expand Down
3 changes: 0 additions & 3 deletions config/locales/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ cs:
published: Publikováno
updated: Aktualizováno
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
one: Dokument
Expand Down
4 changes: 0 additions & 4 deletions config/locales/cy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,6 @@ cy:
published: Cyhoeddwyd
updated: Diweddarwyd
contents: Cynnwys
detailed_guide:
related_mainstream_content: Gormod o fanylion?<br/>Edrychwch ar y canllawiau cyflym
hyn
related_guides: Arweiniad manwl perthnasol
publication:
details: Manylion
documents:
Expand Down
19 changes: 0 additions & 19 deletions config/locales/da.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,21 +246,8 @@ da:
see_all_updates:
show_all_updates:
publisher_metadata:
collections:
from:
hide_all:
show_all:
related_navigation:
collections:
external_links:
policies:
publishers:
related_content:
related_guides:
statistical_data_sets:
topical_events:
topics:
world_locations:
share_links:
share_this_page:
corporate_information_page:
Expand All @@ -270,9 +257,6 @@ da:
publication_scheme_html:
social_media_use_html:
welsh_language_scheme_html:
detailed_guide:
related_guides:
related_mainstream_content:
multi_page:
next_page:
previous_page:
Expand All @@ -282,9 +266,6 @@ da:
error:
option:
title:
time:
formats:
short_ordinal:
travel_advice:
alert_status:
avoid_all_but_essential_travel_to_parts:
Expand Down
3 changes: 0 additions & 3 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ de:
published: Veröffentlicht
updated: Aktualisiert
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
one: Dokument
Expand Down
3 changes: 0 additions & 3 deletions config/locales/dr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,6 @@ dr:
published: "نشر شده"
updated: "به روز شده"
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
one: "سند"
Expand Down
3 changes: 0 additions & 3 deletions config/locales/el.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ el:
published: "Δημοσιευμένο"
updated: "ανανεωμένο "
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
one: "Έγγραφο"
Expand Down
21 changes: 0 additions & 21 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,14 @@
# available at https://guides.rubyonrails.org/i18n.html.

en:
time:
formats:
short_ordinal: '%e %B %Y'
common:
last_updated: "Last updated"
components:
figure:
image_credit: "Image credit: %{credit}"
share_links:
share_this_page: "Share this page"
publisher_metadata:
from: "From"
collections: "Collections"
show_all: "show all"
hide_all: "hide all"
related_navigation:
collections: "Collection"
external_links: "Elsewhere on the web"
policies: "Policy"
publishers: "Published by"
related_content: "Related content"
related_guides: "Detailed guidance"
statistical_data_sets: "Statistical data set"
topics: "Explore the topic"
topical_events: "Topical event"
world_locations: "World locations"
published_dates:
show_all_updates: "show all updates"
hide_all_updates: "hide all updates"
Expand Down Expand Up @@ -359,9 +341,6 @@ en:
published: Published
updated: Updated
contents: Contents
detailed_guide:
related_guides: "Related guides"
related_mainstream_content: Too much detail?<br/>See these quick guides
publication:
documents:
one: Document
Expand Down
3 changes: 0 additions & 3 deletions config/locales/es-419.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ es-419:
published: publicado
updated: actualizado
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
one: Documento
Expand Down
3 changes: 0 additions & 3 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ es:
published: Publicado
updated: Actualizado
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
one: Documento
Expand Down
3 changes: 0 additions & 3 deletions config/locales/et.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ et:
published: avaldatud
updated: Täiendatud
contents: Sisukord
detailed_guide:
related_mainstream_content: 'Liiga detailne?<br/>Vt. neid kokkuvõtlikke juhendeid? '
related_guides: Seotud detailne juhend
publication:
documents:
one: Dokument
Expand Down
3 changes: 0 additions & 3 deletions config/locales/fa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ fa:
published: "منتشر شده"
updated: "به روز رسانی شده"
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
other: "مدارک"
Expand Down
19 changes: 0 additions & 19 deletions config/locales/fi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,21 +246,8 @@ fi:
see_all_updates:
show_all_updates:
publisher_metadata:
collections:
from:
hide_all:
show_all:
related_navigation:
collections:
external_links:
policies:
publishers:
related_content:
related_guides:
statistical_data_sets:
topical_events:
topics:
world_locations:
share_links:
share_this_page:
corporate_information_page:
Expand All @@ -270,9 +257,6 @@ fi:
publication_scheme_html:
social_media_use_html:
welsh_language_scheme_html:
detailed_guide:
related_guides:
related_mainstream_content:
multi_page:
next_page:
previous_page:
Expand All @@ -282,9 +266,6 @@ fi:
error:
option:
title:
time:
formats:
short_ordinal:
travel_advice:
alert_status:
avoid_all_but_essential_travel_to_parts:
Expand Down
3 changes: 0 additions & 3 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ fr:
published: publié
updated: mise à jour
contents:
detailed_guide:
related_mainstream_content:
related_guides:
publication:
documents:
one: Document
Expand Down
19 changes: 0 additions & 19 deletions config/locales/gd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -396,21 +396,8 @@ gd:
see_all_updates:
show_all_updates:
publisher_metadata:
collections:
from:
hide_all:
show_all:
related_navigation:
collections:
external_links:
policies:
publishers:
related_content:
related_guides:
statistical_data_sets:
topical_events:
topics:
world_locations:
share_links:
share_this_page:
corporate_information_page:
Expand All @@ -420,9 +407,6 @@ gd:
publication_scheme_html:
social_media_use_html:
welsh_language_scheme_html:
detailed_guide:
related_guides:
related_mainstream_content:
multi_page:
next_page:
previous_page:
Expand All @@ -432,9 +416,6 @@ gd:
error:
option:
title:
time:
formats:
short_ordinal:
travel_advice:
alert_status:
avoid_all_but_essential_travel_to_parts:
Expand Down
Loading

0 comments on commit f534c13

Please sign in to comment.