Skip to content

[6.x] Add missing English translation for elevated session verification code - #15742

Merged
duncanmcclean merged 1 commit into
6.xfrom
elevated-session-verification-code-translation
Oct 29, 2026
Merged

duncanmcclean merged 1 commit into
6.xfrom
elevated-session-verification-code-translation

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

This pull request fixes an issue where the elevated session modal showed the raw messages.elevated_session_enter_verification_code key, instead of a translated message, when asking for an email verification code.

This was happening because the string was never added to lang/en/messages.php. Other languages, like German and French, already had it.

This PR fixes it by adding the missing English string.

The issue also suggests adding the statamic:: namespace to the __('messages.elevated_session_*') calls in ElevatedSessionModal.vue. That isn't needed: the JS translator already falls back to statamic:: when a key can't be found, which is why messages.elevated_session_enter_password translates fine. SessionExpiry.vue uses the same un-namespaced keys, so I've left them alone for consistency.

Fixes #15740

@duncanmcclean
duncanmcclean merged commit f84b6ef into 6.x Oct 29, 2026
66 checks passed
@duncanmcclean
duncanmcclean deleted the elevated-session-verification-code-translation branch October 29, 2026 09:17
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.

Elevated session dialog shows untranslated key messages.elevated_session_enter_verification_code

1 participant