gearheads
/
mastodon
Archived
2
0
Fork 0

Check for missing i18n strings in CI (#23368)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
gh/dev
Nick Schonning 2023-02-18 06:46:44 -05:00 committed by GitHub
parent b4df632ca1
commit 7e215b3bda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View File

@ -18,20 +18,31 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install system dependencies - name: Install system dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libicu-dev libidn11-dev sudo apt-get install -y libicu-dev libidn11-dev
- name: Set up Ruby - name: Set up Ruby
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
ruby-version: .ruby-version ruby-version: .ruby-version
bundler-cache: true bundler-cache: true
- name: Check locale file normalization - name: Check locale file normalization
run: bundle exec i18n-tasks check-normalized run: bundle exec i18n-tasks check-normalized
- name: Check for unused strings - name: Check for unused strings
run: bundle exec i18n-tasks unused run: bundle exec i18n-tasks unused
- name: Check for missing strings in English
run: |
bundle exec i18n-tasks add-missing -l en
git diff --exit-code
- name: Check for wrong string interpolations - name: Check for wrong string interpolations
run: bundle exec i18n-tasks check-consistent-interpolations run: bundle exec i18n-tasks check-consistent-interpolations
- name: Check that all required locale files exist - name: Check that all required locale files exist
run: bundle exec rake repo:check_locales_files run: bundle exec rake repo:check_locales_files

View File

@ -91,6 +91,7 @@ en:
moderation: moderation:
active: Active active: Active
all: All all: All
disabled: Disabled
pending: Pending pending: Pending
silenced: Limited silenced: Limited
suspended: Suspended suspended: Suspended
@ -133,6 +134,7 @@ en:
search: Search search: Search
search_same_email_domain: Other users with the same e-mail domain search_same_email_domain: Other users with the same e-mail domain
search_same_ip: Other users with the same IP search_same_ip: Other users with the same IP
security: Security
security_measures: security_measures:
only_password: Only password only_password: Only password
password_and_2fa: Password and 2FA password_and_2fa: Password and 2FA
@ -427,6 +429,7 @@ en:
resolve: Resolve domain resolve: Resolve domain
title: Block new e-mail domain title: Block new e-mail domain
no_email_domain_block_selected: No e-mail domain blocks were changed as none were selected no_email_domain_block_selected: No e-mail domain blocks were changed as none were selected
not_permitted: Not permitted
resolved_dns_records_hint_html: The domain name resolves to the following MX domains, which are ultimately responsible for accepting e-mail. Blocking an MX domain will block sign-ups from any e-mail address which uses the same MX domain, even if the visible domain name is different. <strong>Be careful not to block major e-mail providers.</strong> resolved_dns_records_hint_html: The domain name resolves to the following MX domains, which are ultimately responsible for accepting e-mail. Blocking an MX domain will block sign-ups from any e-mail address which uses the same MX domain, even if the visible domain name is different. <strong>Be careful not to block major e-mail providers.</strong>
resolved_through_html: Resolved through %{domain} resolved_through_html: Resolved through %{domain}
title: Blocked e-mail domains title: Blocked e-mail domains
@ -473,6 +476,7 @@ en:
content_policies: content_policies:
comment: Internal note comment: Internal note
description_html: You can define content policies that will be applied to all accounts from this domain and any of its subdomains. description_html: You can define content policies that will be applied to all accounts from this domain and any of its subdomains.
limited_federation_mode_description_html: You can chose whether to allow federation with this domain.
policies: policies:
reject_media: Reject media reject_media: Reject media
reject_reports: Reject reports reject_reports: Reject reports
@ -585,11 +589,13 @@ en:
assign_to_self: Assign to me assign_to_self: Assign to me
assigned: Assigned moderator assigned: Assigned moderator
by_target_domain: Domain of reported account by_target_domain: Domain of reported account
cancel: Cancel
category: Category category: Category
category_description_html: The reason this account and/or content was reported will be cited in communication with the reported account category_description_html: The reason this account and/or content was reported will be cited in communication with the reported account
comment: comment:
none: None none: None
comment_description_html: 'To provide more information, %{name} wrote:' comment_description_html: 'To provide more information, %{name} wrote:'
confirm: Confirm
confirm_action: Confirm moderation action against @%{acct} confirm_action: Confirm moderation action against @%{acct}
created_at: Reported created_at: Reported
delete_and_resolve: Delete posts delete_and_resolve: Delete posts
@ -792,6 +798,7 @@ en:
suspend: "%{name} suspended %{target}'s account" suspend: "%{name} suspended %{target}'s account"
appeal_approved: Appealed appeal_approved: Appealed
appeal_pending: Appeal pending appeal_pending: Appeal pending
appeal_rejected: Appeal rejected
system_checks: system_checks:
database_schema_check: database_schema_check:
message_html: There are pending database migrations. Please run them to ensure the application behaves as expected message_html: There are pending database migrations. Please run them to ensure the application behaves as expected
@ -827,6 +834,7 @@ en:
other: Shared by %{count} people over the last week other: Shared by %{count} people over the last week
title: Trending links title: Trending links
usage_comparison: Shared %{today} times today, compared to %{yesterday} yesterday usage_comparison: Shared %{today} times today, compared to %{yesterday} yesterday
not_allowed_to_trend: Not allowed to trend
only_allowed: Only allowed only_allowed: Only allowed
pending_review: Pending review pending_review: Pending review
preview_card_providers: preview_card_providers:
@ -958,6 +966,7 @@ en:
applications: applications:
created: Application successfully created created: Application successfully created
destroyed: Application successfully deleted destroyed: Application successfully deleted
logout: Logout
regenerate_token: Regenerate access token regenerate_token: Regenerate access token
token_regenerated: Access token successfully regenerated token_regenerated: Access token successfully regenerated
warning: Be very careful with this data. Never share it with anyone! warning: Be very careful with this data. Never share it with anyone!
@ -994,6 +1003,8 @@ en:
resend_confirmation: Resend confirmation instructions resend_confirmation: Resend confirmation instructions
reset_password: Reset password reset_password: Reset password
rules: rules:
accept: Accept
back: Back
preamble: These are set and enforced by the %{domain} moderators. preamble: These are set and enforced by the %{domain} moderators.
title: Some ground rules. title: Some ground rules.
security: Security security: Security