Skip to content

Fix translation keys that do not resolve - #354

Merged
Cannonb4ll merged 1 commit into
ploi:mainfrom
sandervanhooft:fix/missing-translation-keys
Sep 12, 2026
Merged

Fix translation keys that do not resolve#354
Cannonb4ll merged 1 commit into
ploi:mainfrom
sandervanhooft:fix/missing-translation-keys

Conversation

@sandervanhooft

Copy link
Copy Markdown
Contributor

A few trans() calls reference keys that don't exist, so the raw key is shown to users instead of the translated text.

Fixes

Where Was Now
auth/verify-email.blade.php, auth/verify.blade.php auth.verify-new-success. (trailing period inside the key) auth.verify-new-success
BoardResource created at column resources.user.created-at resources.created-at (as used by every other resource)
ItemResource GitHub issue modal submit button resources.item.github-issue-create resources.item.github.create

The first one is the most visible: after requesting a new verification email, the success banner reads auth.verify-new-success. instead of "A fresh verification link has been sent to your email address."

Regression test

Adds tests/Feature/TranslationKeysTest.php, which scans app/ and resources/views for translation keys passed as a string literal to __(), trans(), trans_choice() or @lang, and asserts each one exists in the English translations. Dynamically built keys (e.g. 'general.' . $type) are skipped. The test fails on main and passes with these fixes.

- auth.verify-new-success had a trailing period inside the key, so the
  verification resend banner showed the raw key
- BoardResource used resources.user.created-at instead of
  resources.created-at
- ItemResource used resources.item.github-issue-create, which does not
  exist; use resources.item.github.create

Add a test asserting that every literal translation key used in app/ and
resources/views exists in the English translations.
@Cannonb4ll
Cannonb4ll merged commit dceeb89 into ploi:main Sep 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants