Skip to content

Commit

Permalink
Check missing/unused translations in seeds.yml
Browse files Browse the repository at this point in the history
We were making some typos during development in the name of the keys and
tests were still passing.

We're also removing some texts that were never used.
  • Loading branch information
javierm committed Dec 14, 2021
1 parent 4fdf66a commit 8f48d81
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions config/i18n-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ data:
- config/locales/%{locale}/milestones.yml
- config/locales/%{locale}/sdg.yml
- config/locales/%{locale}/sdg_management.yml
- config/locales/%{locale}/seeds.yml
- config/locales/%{locale}/stats.yml

# Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
Expand Down Expand Up @@ -79,6 +80,7 @@ search:
paths:
- app/
- db/pages/
- db/dev_seeds/

## Root directories for relative keys resolution.
# relative_roots:
Expand Down Expand Up @@ -122,7 +124,6 @@ ignore_missing:
- "devise.failure.invalid"
- "devise.registrations.destroyed"
- "devise.password_expired.*"
- "seeds.settings.*"

## Consider these keys used:
ignore_unused:
Expand Down Expand Up @@ -215,7 +216,6 @@ ignore_unused:
- admin.stats.polls.expired
- "stats.polls.*_percentage"
- landings.cambia_tu_ciudad.*
- "seeds.settings.*"
- "dashboard.polls.*.submit"
- "related_content.content_title.*"
- "sdg.goals.goal_*"
Expand Down
5 changes: 0 additions & 5 deletions config/locales/en/seeds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ en:
phases:
description: "Description in %{language}"
summary: "Summary in %{language}"
valuator_groups:
culture_and_sports: Culture & Sports
gender_and_diversity: Gender & Diversity Policies
urban_development: Sustainable Urban Development
equity_and_employment: Equity & Employment
statuses:
studying_project: Studying the project
bidding: Bidding
Expand Down
5 changes: 0 additions & 5 deletions config/locales/es/seeds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ es:
phases:
description: "Descripción en %{language}"
summary: "Resumen en %{language}"
valuator_groups:
culture_and_sports: Cultura y Deportes
gender_and_diversity: Políticas de Género y Diversidad
urban_development: Desarrollo Urbano Sostenible
equity_and_employment: Equidad y Empleo
statuses:
studying_project: Estudiando el proyecto
bidding: Licitación
Expand Down

0 comments on commit 8f48d81

Please sign in to comment.