#5835·devise

Weird capitalization when translation for `email` is "Email Address"

Author: jagthedrummerCreated Mar 30, 2026Updated Apr 1, 2026

After upgrading to Devise 5 some of our tests started complaining about a change in capitalization, which seems to be related to https://github.com/heartcombo/devise/pull/4014 and https://github.com/heartcombo/devise/pull/4834. But the actual message we're getting seems unexpected.

If we have a translation string for user.email set to "Email Address" then we get an error message with odd capitalization saying "Invalid email Address or password."

If we set the translation string to just "Email" then we get "Invalid email or password".

I'd expect it to downcase the entire translation string.